Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
VIEW—view a data set z/OS ISPF Services Guide SC19-3626-00 |
|
The VIEW service enables you to manipulate data without the risk of saving changes. As in the EDIT service, data can be manipulated through the use of familiar line and primary commands. The VIEW service functions exactly like the EDIT service, with these exceptions:
The VIEW service provides an interface to the VIEW function and bypasses the display of the View Entry Panel. The VIEW interface allows you to use a customized panel for displaying data (use panel ISREFR01 as a model when creating your panel), and lets you specify the initial macro and the edit profile to be used. You can use VIEW to view any ISPF library, concatenation of ISPF libraries, or data set that can be allocated by using the LMINIT service. You can use the service recursively, either through nested dialogs or by entering a VIEW command while viewing a member or data set. In addition, the EDIT and BROWSE commands can be nested within a VIEW session until you run out of storage. Note:
When VIEW is operating in recovery mode, a record of your interactions is automatically recorded in a PDF-controlled data set. Following a system failure, you can use the record to recover the data you were viewing. A dialog using VIEW can place data into the ZEDUSER dialog variable in the shared pool. The data in ZEDUSER is saved in the edit recovery table as an extension variable when the recovery data set is initialized. This is done if RECOVERY is ON when first entering view or after using the CREATE or REPLACE command. The data is then made available in dialog variable ZEDUSER at the time view recovery is processed. You can use VIEW to display workstation files on the host and host data sets on the workstation. The ZWSWFN variable is the workstation working file name that is generated by ISPF. The variable ZLRECL is the LRECL of the host data set being edited. Both can be used in the workstation VIEW parameters field. ISPF interprets any string that starts with an ampersand (&) as a system variable and evaluates it before passing to the workstation command. Strings that do not start with an ampersand are passed as is. Batch commands can also be specified in the Workstation Browse/View fields, besides the View program name. If you have a file transferred to the workstation that you wish to do some work on besides View, you can do that in the beginning of the batch file before invoking the editor. Depending on the parameters passed to the batch command, you can also have conditional logic to perform other functions as well. Command invocation format>>-ISPEXEC--VIEW--DATASET(dsname)--+----------------+-----------> '-VOLUME(serial)-' >--+----------------------+--+-------------------+--------------> '-PASSWORD(pswd-value)-' '-PANEL(panel-name)-' >--+-------------------+--+-----------------------+-------------> '-MACRO(macro-name)-' '-PROFILE(profile-name)-' >--+---------------------+--+------------------+----------------> '-FORMAT(format-name)-' | .-NO--. | '-MIXED(-+-YES-+-)-' >--+--------------------+--+---------------+--------------------> | .-YES-. | | .-NO--. | '-CONFIRM(-+-NO--+-)-' '-WS(-+-YES-+-)-' >--+--------------------+--+----------------+--+-------+--------> | .-YES-. | '-PARM(parm-var)-' +-ASCII-+ '-CHGWARN(-+-NO--+-)-' '-UTF8--' >--+-------------------+--------------------------------------->< '-LINECMDS(tabname)-' or >>-ISPEXEC--VIEW--DATAID(data-id)--+---------------------+------> '-MEMBER(member-name)-' >--+-------------------+--+-------------------+-----------------> '-PANEL(panel-name)-' '-MACRO(macro-name)-' >--+-----------------------+--+---------------------+-----------> '-PROFILE(profile-name)-' '-FORMAT(format-name)-' >--+------------------+--+--------------------+-----------------> | .-NO--. | | .-YES-. | '-MIXED(-+-YES-+-)-' '-CONFIRM(-+-NO--+-)-' >--+---------------+--+--------------------+--------------------> | .-NO--. | | .-YES-. | '-WS(-+-YES-+-)-' '-CHGWARN(-+-NO--+-)-' >--+----------------+--+-------+--+-------------------+-------->< '-PARM(parm-var)-' +-ASCII-+ '-LINECMDS(tabname)-' '-UTF8--' or >>-ISPEXEC--VIEW--WSFN(ws-filename)--+-------------------+------> '-PANEL(panel-name)-' >--+-------------------+--+-----------------------+-------------> '-MACRO(macro-name)-' '-PROFILE(profile-name)-' >--+---------------------+--+------------------+----------------> '-FORMAT(format-name)-' | .-NO--. | '-MIXED(-+-YES-+-)-' >--+--------------------+--+---------------+--------------------> | .-YES-. | | .-NO--. | '-CONFIRM(-+-NO--+-)-' '-WS(-+-YES-+-)-' >--+--------------------+--+----------------+------------------>< | .-YES-. | '-PARM(parm-var)-' '-CHGWARN(-+-NO--+-)-' or >>-ISPEXEC--VIEW--FILE(file-var)--+-------------------+---------> '-PANEL(panel-name)-' >--+-------------------+--+-----------------------+-------------> '-MACRO(macro-name)-' '-PROFILE(profile-name)-' >--+---------------------+--+------------------+----------------> '-FORMAT(format-name)-' | .-NO--. | '-MIXED(-+-YES-+-)-' >--+--------------------+--+---------------+--------------------> | .-YES-. | | .-NO--. | '-CONFIRM(-+-NO--+-)-' '-WS(-+-YES-+-)-' >--+--------------------+--+----------------+--+-------+--------> | .-YES-. | '-PARM(parm-var)-' +-ASCII-+ '-CHGWARN(-+-NO--+-)-' '-UTF8--' >--+-------------------+--------------------------------------->< '-LINECMDS(tabname)-' Call invocation format>>-CALL--ISPLINK--('VIEWbbbb'--,--+--------+--,-+-serial-+------> '-dsname-' '-'b'----' >--,-+-pswd-value-+--,-+-panel-name-+--,-+-macro-name-+---------> '-'b'--------' '-'b'--------' '-'b'--------' >--,-+-profile-name-+--,--+---------+--,-+-member-name-+--------> '-'b'----------' '-data-id-' '-'b'---------' .-'NObbbbbb'-. .-'YESbbbbb'-. >--,-+-format-name-+--,-+-'b'--------+--,-+-'b'--------+--,-----> '-'b'---------' '-'YESbbbbb'-' '-'NObbbbbb'-' .-'YES'-. >--+-------------------------+--,-+-'b'---+--,-+-'b'---+--------> '-ws-filename-buffer-name-' '-'NO'--' +-'YES'-+ '-'NO'--' >--,-+-parm-var-+--,--+----------+--,-+-'ASCII'-+-);------------> '-'b'------' '-file-var-' +-'UTF8'--+ '-'b'-----' >--,-+-tabname-+----------------------------------------------->< '-'b'-----' or >>-CALL--ISPEXEC--(buf-len,--buffer);-------------------------->< Parameters
Return codesThese return codes are possible:
ExamplesExample 1:This example invokes the VIEW service for TELOUT, a member of the ISPFPROJ.FTOUTPUT data set, using the viewer command configured on the workstation. Command invocation
Call invocation
Set the program variable BUFFER to contain:
Set the program variable BUFFLN to the length of the variable BUFFER.
Issue the command:
Example 2:This example invokes the VIEW service for a workstation file, c:\config.sys, using the ISPF editor on the host. Command invocationSet the command variable WSFNNAME to contain:
Call invocationSet the program variable to contain:
Set the program variable WSFNNAME to contain:
Set the program variable BUFFER to contain:
Set the program variable BUFFLEN to the length of the variable
BUFFER. Enter the command:
Example 3:This example invokes the VIEW service for z/OS UNIX file /u/user1/filea. Command invocation
Call invocation
|
Copyright IBM Corporation 1990, 2014
|