Checklist #2: Creating A Data Set With The Allocate Command - IBM TSO/E REXX User Manual

Table of Contents

Advertisement

Checklist #1

Checklist #2: Creating a Data Set with the ALLOCATE Command

1. Type an ALLOCATE command at the READY prompt to define the
190
z/OS V1R1.0 TSO/E REXX User's Guide
------------------------------ EDIT - ENTRY PANEL ---------------------------
COMMAND ===>
ISPF LIBRARY:
PROJECT ===> userid
GROUP
===> rexx
TYPE
===> exec
MEMBER ===> timegame
OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME
===>
VOLUME SERIAL
===>
DATA SET PASSWORD ===>
PROFILE NAME
===>
INITIAL MACRO
===>
FORMAT NAME
===>
In the edit session, you can type REXX instructions, such as the ones that
follow.
EDIT ---- USERID.REXX.EXEC(TIMEGAME)---------------- COLUMNS 009 080
COMMAND ===>
****** ************************ TOP OF DATA **************************
000001 /************************** REXX ****************************/
000002 /* This is an interactive REXX exec that compares the time */
000003 /* from a user's watch with computer time.
000004 /************************************************************/
000005
000006 SAY 'What time is it?'
000007 PULL usertime
000008
000009
000010 IF usertime = '' THEN
000011
SAY "O.K. Game's over."
000012 ELSE
000013
DO
000014
SAY "The computer says:"
000015
/* TSO system */ "time"
000016
END
000017
000018 EXIT
****** *********************** BOTTOM OF DATA **********************************
attributes of the new data set.
You can use the ALLOCATE command to create a PDS instead of using
ISPF/PDF panels. If you noted attributes in the Preliminary Checklist #5 on
page 187, substitute the attributes from the appropriate system file in the
following example. If you are unsure about which system file is appropriate, use
the values from SYSEXEC.
Note: In the ALLOCATE command, specify a record format of VB as
RECFM(v,b) and a record format of FB as RECFM(f,b).
If your installation has no attribute recommendations and you have no attributes
from the Preliminary Checklist, you can use the attributes in the following
example.
===>
===>
(Blank for member selection list)
(If not cataloged)
(If password protected)
(Blank defaults to data set type)
LOCK
===> YES (YES, NO or NEVER)
MIXED MODE ===> NO
/* Put the user's response
into a variable called
"usertime" */
/* command */
===>
(YES or NO)
SCROLL ===> HALF
*/

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents