DYNAM Command

In this section:

 

The FOCUS DYNAM command is used to manipulate data sets under z/OS. Although similar functions are available under TSO, the DYNAM command is very useful in non-TSO environments when TSO is not necessarily present. DYNAM is recommended instead of TSO commands to manipulate data sets.


Top of page

x
Syntax: How to Manipulate Data Sets Under z/OS
DYNAM subcommand operand [operand]... 

where:

subcommand

Required. Is one of the following operations:

ALLOCATE
ALLOC
ALLO

Allocates a data set. A wide variety of allocation options is supported.

CONCAT
CONC

Concatenates data sets.

FREE

Frees data sets specified by ddnames or dsnames. Each name may contain wildcard characters.

CLOSE
CLO

Closes data sets. Useful when the data sets cannot be freed because they are open. The command has the same syntax as DYNAM FREE above.

COPY

Copies an entire data set or selected PDS members. The command has powerful features such as record format conversion, either automatic or controlled by options.

COPYDD

Copies data between z/OS data sets and/or HiperFOCUS files. DYNAM COPY has been enhanced to handle all functions offered by COPYDD, and is recommended for use instead of COPYDD.

DELETE
DEL 

Deletes an entire data set or selected PDS members.

RENAME
REN 

Renames an entire data set or selected PDS members.

SUBMIT
SUB

Submits z/OS jobs.

COMPRESS
COMP

Compresses partitioned data sets (PDSs).

operand

May be a keyword, a keyword followed by its parameter, or a parameter without a keyword.

The following rules apply to the DYNAM command:

The DYNAM command and its subcommands, except for COMPRESS and CLOSE, are available from the DYNAM Utilities Menu. Additional allocations for the menu are not required. Private applications may be included on the primary menu. To access the menu, enter the command:

EX DYMENU


x
Use of Data Sets

z/OS obtains a lock for any allocated data set name: a shared lock for those specified as SHR; an exclusive lock for OLD, NEW, or MOD.

Although data sets can be allocated more than once in a job step, only one type of lock may be obtained. For example, if the data set is allocated as SHR and is then allocated as OLD in the same step, the z/OS lock changes from shared to exclusive, and the data set will not be available for use by other jobs until all allocations in this job are freed.

In addition, a z/OS exclusive lock is not sufficient in multi-user environments, such as FOCUS MSO. If one user were to allocate a data set as OLD, z/OS would allow another user to allocate it as OLD also, because both requests occur in the same job step. This can cause data set corruption due to simultaneous updating.

In order to alleviate these issues, the DYNAM commands that manipulate data sets use an improved locking mechanism, similar to that implemented in ISPF:


Top of page

x
ALLOCATE Subcommand

How to:

The DYNAM ALLOCATE command allocates a data set.



x
Syntax: How to Allocate a Data Set With the ALLOCATE Subcommand
DYNAM ALLOCATE normal_disp [CLOSE]
DDNAME ddname [DEFER] [LONGNAME lnam] [DSNAME dsname{(memname)|(n)} 
[DUMMY]
[EXPDT date]
[HIPER OFF]
[INPT|OUTPT]
[LABEL type]
[MEMBER memname] status [MSVGP msvgp]
[PARALLEL] [PASSWORD password] [PERM] [POSITION nnnn]
[REFVOL dsname] [RETPD days] [REUSE]
[UNIT unit [UCOUNT n]]
[VOLUME volser]

Space operands are:

space_format
space_alloc
 [DIR n]
 [PRIMARY n1]
 [RELEASE] [ROUND]
 [SECONDARY n2] [SPACE space]

DCB operands are:

 [BLKSIZE n] [BUFNO n]
 [DEN n] [DSORG dsorg]
 [LRECL n]
 [RECFM recfm] [REFDD ddname] [REFDSN dsname]

SMS and VSAM operands are:

 [DATACLASS name] [DSNTYPE {LIBRARY|PDS}]
 [KEYOFF n]
 [LIKE dsname]
 [MGMTCLASS name]
 [RECORG recorg]
 [SECMODEL name] [STORCLASS name]
 [BUFND m]
 [BUFNI n]

Output printing operands are:

 [DEST dest[.user]]
 [FCB name [ALIGN|VERIFY]] [FORMS name] 
 [HOLD]
 [OUTLIM n] [OUTPUT name]
 [SYSOUT class]
 [USER user]
 [WRITER name]

where:

ALLOCATE

Can be abbreviated as ALLOC or ALLO.

normal_disp

Can be one of the following:

CATALOG 
DELETE 
KEEP 
UNCATALOG 
UNCAT

Data set normal disposition. By default, for a data set status of NEW, if dsname is specified, the disposition is CATALOG. Otherwise, the disposition is DELETE. Incompatible with SYSOUT. Synonyms are: CATALOG-CATLG.

CLOSE

Deallocation of the data set at close rather than at the end of the step. JCL analogy: FREE=CLOSE.

DDNAME ddname DDDEFER

DDNAME to be associated with an allocation. Must be specified. Synonyms are: DDname-Filename. Assign device(s) to the data set but defer mounting of the volume(s) until the data set is opened. JCL analogy: DEFER in UNIT.

DSNAME dsname [(memname)]

Member name can be specified either in parentheses after dsname or using keyword MEMBER (see below). If dsname is specified as asterisk (*), terminal is allocated. This is used for output only. Synonyms are: DSname-DAtaset.

[(n)]

Relative GDG number.

DUMMY

Dummy data set is to be allocated.

EXPDT date

Expiration date in format YYDDD, YYYY/DDD, or YYYYDDD. Incompatible with RETPD and SYSOUT.

HIPER OFF

Prohibit allocation in a hiperspace. Equivalent to the "UNIT NOHIPER" and is used when UNIT is to be specified too. For example, "UNIT VIO HIPER OFF".

INPT OUTPT

Data set is to be processed as input only (INPT) or output only (OUTPUT). JCL analogy: IN in LABEL. Incompatible with SYSOUT.

LABEL type

Type of volume labels. Can be one of the following: NL, SL, NSL, SUL, BLP, LTM, AL, or AUL. Incompatible with SYSOUT.

LONGNAME lnam

Is a Master File name longer than eight characters. Creates a copy of the corresponding short Master File in the PDS allocated to DD HOLDMAST. For more information, see the Describing Data manual.

MEMBER memname

Name of a PDS member to be allocated. See also DSNAME.

status

Data set status. Default: NEW. Incompatible with SYSOUT. Can be one of the following: MOD, NEW, OLD, SHR

MSVGP msvgp

Identification of a group of mass storage system (MSS) virtual volumes. Incompatible with SYSOUT and VOLUME.

PARALLEL

Each volume is to be mounted on a separate device. JCL analogy: P in UNIT.

PASSWORD password

Password for a password protected data set.

PERM

The allocation is to be permanent—that is, protected from being freed or concatenated by any DYNAM command issued by an MSO user. The operand is valid only in an MSO server initialization profile.

POSITION nnnn

Data set sequence number on a tape volume, up to 9999. JCL analogy: the first subparameter in LABEL.

REFVOL dsname

Volume serial information is to be obtained from the specified cataloged data set. JCL analogy: VOL=REF=dsname. Incompatible with SYSOUT and VOLUME.

RETPD days

Retention period, up to 9999 days. Incompatible with EXPDT and SYSOUT.

REU[SE]

If the ddname to be allocated is already in use, it is to be freed.

UNIT unit

Device group name, device type, specific unit address, or NOHIPER. NOHIPER prohibits allocation in a hiperspace, meaningful for a temporary (NEW,DELETE) data set; see also HIPER OFF.

UCOUNT n

Number of volumes to allocate.

VOLUME volser VOL

Volume serial numbers. Incompatible with REFVOL and SYSOUT. Synonyms are: VOLume-VOLser.

Space operands may be:

space_format

Can be one of the following:

ALX 
CONTIG 
MXIG

Format of the primary space to be allocated: up to five contiguous areas (ALX); one contiguous area (CONTIG); one maximal contiguous area (MXIG). JCL analogy: ALX/CONTIG/MXIG in SPACE.

space_alloc

Can be one of the following:
BLOCKS [n]
CYLINDERS 
MEGABYTES 
PAGES 
TRACKS

N represents units of primary and secondary space allocation. If parameter for BLOCKS is omitted, the average block length is copied from BLKSIZE. If space unit is omitted but SPACE and BLKSIZE are specified, BLOCKS equal BLKSIZE is used. For PAGES, BLOCKS 4096 is used. BLKSIZE must be specified if the BLOCKS parameter is specified. Synonyms are: CYLINDERS-CYLs, TRACKS-TRKs.

DIR n

Number of 256-byte records for the directory of a PDS.

PRIMARY n1

Primary space quantity. See also SPACE.

RELEASE

Unused space is to be released when the data set is closed. Synonyms are: RELEASE-RLSE.

ROUND

If space is requested in BLOCKS, MEGABYTES, or PAGES, it is to be rounded to whole cylinder(s).

SECONDARY n2

Secondary space quantity. See also SPACE.

SPACE space
SP

Primary (n1) and/or secondary (n2) space quantity in one of the following formats:

n1/(n1)/n1,n2/(n1,n2)/n1 n2/(n1 n2)/,n2/(,n2) 

See also PRIMARY and SECONDARY.

DCB operands may be:

BLKSIZE n

Block size, up to 32760. See also BLOCKS.

BUFNO n

Number of buffers, up to 255.

DEN n

n represents magnetic tape density: 0, 1, 2, 3, or 4 for 200, 556, 800, 1600, 6250 bpi respectively.

DSORG dsorg

Data set organization. Default, for NEW only; PO if DIR or DSNTYPE specified; PS otherwise. The following values are syntactically correct:

VS VSAM.

PO/POU PDS or PDS unmovable.

DA/DAU direct access or direct access unmovable.

PS/PSU physical sequential or physical sequential unmovable.

LRECL n

Logical record length, up to 32760.

RECFM recfm

Record format. The first letter should be D, F, U, or V, which may be followed by any valid combination of A, B, M, S, or T:

A records with ISO/ANSI control characters.

B blocked records.

D variable-length ISO/ANSI tape records.

F fixed-length records.

M records with machine code control characters.

S standard fixed-length or spanned variable-length records.

T track overflow.

U undefined-length records.

V variable-length records.

REFDD ddname

DCB attributes are to be copied from the specified ddname. Under TSO, EXPDT and INPT/OUTPT specifications are also copied. Any of those can be overridden by appropriate keyword on the same command. JCL analogy: DCB=*.ddname. Incompatible with REFDSN.

REFDSN dsname

DCB attributes (DSORG, RECFM, OPTCD, BLKSIZE, LRECL, RKP, KEYLEN) and EXPDT are to be copied from the specified cataloged data set. Any of those can be overridden by appropriate keyword on the same command. JCL analogy: DCB=dsname. Incompatible with REFDD.

SMS and VSAM operands are:

DATACLASS name

Name of a data class for an SMS managed data set.

DSNTYPE {LIBRARY|PDS}

LIBRARY is for new partitioned extended (PDSE) and PDS is for new partitioned data set. A PDSE cannot contain load modules, should be SMS managed and allows concurrent updating of different members.

KEYOFF n

Offset of the key in each logical record for a new VSAM key-sequenced (RECORG KS) data set.

LIKE dsname

Allocation attributes (DSORG, RECORG or RECFM, LRECL, KEYLEN, KEYOFF, SPace, DIR) are to be copied from the specified cataloged data set (model). Any of those can be overridden by appropriate keyword on the same command.

MGMTCLASS name

Name of a management class for an SMS managed data set.

RECORG recorg

VSAM record organization: KS, ES, RR, or LS for key-sequenced, entry-sequenced, relative record, or linear space data set respectively.

SECMODEL name

Data set RACF profile is to be copied from the named existing RACF profile.

STORCLASS name

Name of a storage class for an SMS managed data set.

BUFND m

Is the number of VSAM DATA buffers.

BUFNI n

Is the number of VSAM INDEX buffers.

Output printing operands may be:

DEST dest[.user]

Remote destination for a SYSOUT data set. In conjunction with user ID, it is a node and a user at that node; the user ID can be coded after the period (.) or using the USER keyword (see below).

FCB name [ALIGN|VERIFY]

Name of an FCB (forms control buffer) image to be used for printing of a data set. The operator may be asked to check the printer forms alignment (ALIGN), or to verify the FCB image name displayed on the printer (VERIFY).

FORMS name FORM

A SYSOUT form name. JCL analogy: third subparameter in SYSOUT, FORMS in OUTPUT JCL.

HOLD

A SYSOUT data set is to be placed on the hold queue.

OUTLIM n

Limit for the number of logical records in a SYSOUT data set.

OUTPUT name

Name(s) of OUTPUT JCL statement(s) to be associated with a SYSOUT data set.

SYSOUT class

A SYSOUT data set is to be allocated and the specified output class (A-Z, 0-9) is to be assigned. If asterisk (*) or NULL is coded, the class is copied either from CLASS in OUTPUT JCL if it is specified, or from MSGCLASS in JOB otherwise.

USER user

A SYSOUT data set is to be routed to the specified user ID. DEST (see above) is required to specify a user's node.

WRITER name

Name of an installation written system output printing routine. JCL analogy: second subparameter in SYSOUT. Incompatible with USER.

In addition to the shown fixed abbreviations and synonyms, keywords may be abbreviated up to the unique truncation. Those abbreviations are not fixed and may be changed when new keywords are added. They may be used interactively to save some keystrokes, but when a command is saved in a file, using unabbreviated keywords is recommended.



Example: Using the DYNAM ALLOCATE Command

Allocate an existing data set:

DYNAM ALLOC DD MYDD DS MYID.DATA.SET SHR REU

Allocate a new data set. Defaults: NEW, CATALOG (DSname present), DSORG PO (not-zero DIR present):

DYNAM ALLOC DD MYDD DS MYID.DATA.SET SPACE 6,2 TRACKS DIR 4 UNIT SYSDA -
RECFM FB LRECL 80 BLKSIZE 1600

Allocate a terminal:

DYNAM ALLOC DD MYDD DS *

Allocate a SYSOUT data set with default output class. Upon freeing, the data set is sent to the user ID U1234 at node SYSVM:

DYNAM ALLOC DD MYDD SYSOUT * DEST SYSVM.U1234

Top of page

x
CONCAT Subcommand

How to:

The DYNAM CONCAT command concatenates up to 16 data sets.



x
Syntax: How to Concatenate Data Sets
DYNAM CONCAT [PERM] DDNAME ddname1 ddname2 [ddname3...]

where:

CONCAT

Can be abbreviated as CONC.

PERM

Optional. Marks the concatenation as permanent—that is, protected from being freed or concatenated again by any DYNAM command issued by an MSO user. Valid only in an MSO server initialization profile.

DNAME
DDN
DD

Required. Synonym is FILENAME.

ddname1

Is the first ddname to be concatenated and associated with the resulting concatenated group.

ddname2

Is the second and any subsequent ddname to be concatenated.



Example: Using the DYNAM CONCAT Command
DYNAM CONCAT DDN FOCEXEC MYEX NEWEX

Top of page

x
FREE Subcommand

How to:

The DYNAM FREE command deallocates any number of specified data sets.



x
Syntax: How to Deallocate Data Sets
DYNAM FREE {DDNAME ddname [ddname...]|DSNAME dsname [dsname...]}
DYNAM FREE LONGNAME lnam

where:

DDNAME
DDN
DD

Is required if there is no dsname. Synonym is FILENAME.

ddname

Is the ddname of the data set to be freed.

DSNAME
DSN
DS

Is required if there is no ddname. Synonym is DATASET.

dsname

Is the name of the data set to be freed. All ddnames associated with this dsname, except concatenated groups, are deallocated.

lnam

Is a Master File name longer than eight characters. For more information, see the Describing Data manual.

While at least one ddname or data set name is required, you may specify more than one ddname or data set name. Each specified name may contain asterisks (*) and question marks (?) as wildcards. Wildcards are special characters used to specify a subset of names rather than one name. The wildcards can appear anywhere in a name and mean the following:

*

Represents any number of characters. For example, "*Q*" matches any name containing the character "Q".

?

Represents any single character. For example, "?Q?" matches any 3-character name containing the character "Q" in the middle.

If the ddname is not found, an error message is issued only if a single ddname without wildcards is specified. An error message is not displayed if a data set or more than one ddname is not found.



Example: Using the DYNAM FREE Command
DYNAM FREE DDN SYS0* TEMP?
DYNAM FREE DSN MYID.DATA.SET

Top of page

x
CLOSE Subcommand

How to:

The DYNAM CLOSE command closes data sets, which cannot be freed because they are open.



x
Syntax: How to Close Data Sets
DYNAM CLOSE {DDNAME ddname [ddname...]|DSNAME dsname [dsname...]}

where:

CLOSE

Can be abbreviated as CLO.

DDNAME
DDN
DD

Is required if there is no dsname. Synonym is FILENAME.

ddname

Is the ddname of the data set to be closed.

DSNAME
DSN
DS

Is required if there is no ddname. Synonym is DATASET.

dsname

Is the name of the data set to be closed. All ddnames associated with this dsname, except concatenated groups, are closed.

While at least one ddname or data set name is required, more than one ddname or data set name may be specified. Each specified name may contain wildcard characters. The same rules apply to the DYNAM CLOSE command as for the DYNAM FREE command (see FREE Subcommand).


Top of page

x
COPY Subcommand

How to:

The DYNAM COPY command copies an entire z/OS data set or selected PDS members.



x
Syntax: How to Copy Entire z/OS Data Sets or Selected PDS Members
DYNAM COPY dname1 {[TO] dname2 [[MEMBER] members]|[MEMBER] members}
 [options]

where:

dname1

Is the dsname or ddname of the input data set. This is a positional parameter. It must precede all other operands.

TO

May be omitted if dname2 does not match a reserved word, the MEMBER keyword, an option, or the TO keyword. To avoid confusion, use the TO keyword whenever dname2 is a ddname.

dname2

Is the dsname or ddname of the output data set. If the output data set is not a PDS and the dsname is specified, it will be allocated as OLD. If the ddname is specified, and the status is SHR, you must make sure that other users do not access the data set during COPY. Unlike ISPF, DYNAM will lock a non-PDS data set in order to prevent simultaneous updating by different DYNAM users.

MEMBER

May be omitted if members are specified in parentheses.

members

Can be a single member specification or a list of member specifications. If the members are enclosed in parenthesis, blanks preceding the left parenthesis may be omitted.

options

May be one or more of the following options:

APPEND 

Adds the input to the end of the existing data, if the output is a sequential data set.

FORCE 

Copies input DCB attributes (RECFM, BLKSIZE, LRECL and KEYLEN) to the output data set. By default, only missing values are assigned.

Note: Do not use FORCE to change the LRECL of one member of an existing PDS as doing so may potentially destroy the PDS.

KEYMOD 

Allows key modification according to input/output KEYLEN: truncation or padding with binary zeros.

REPLACE 

Replaces all output members matching the selected member names.

TRUNCATE 

Allows truncation of input records that are longer than the output record length. Since trailing blanks are truncated automatically when RECFM is different, the keyword is used either to cut records of the same format or to cut non-blank data.

A member specification has the following syntax

mem[,[newmem][,REPLACE]]

where:

mem

Is the selected member name.

newmem

Is the optional new name for the output member.

REPLACE

Is optional and specifies an existing member to be replaced in the output PDS.

Since the comma may be used in member specifications, they are separated with one or more blanks when specified in a list. Therefore, a list of member specifications is always enclosed in parentheses. For example:

(MEM MEM,NEWMEM MEM,NEWMEM,R MEM,,R)

Note:

  • All conversions between different DCB attributes (RECFM, BLKSIZE, and LRECL) are performed automatically.
  • If the entire PDS is copied or any selected member's directory entry contains a TTRN in user data (for example, a load module), the IBM utility IEBCOPY is invoked. In this case, all options except REPLACE are ignored, format conversion is not possible, and copying members to the same PDS is not supported. Note that IEBCOPY requires APF authorization in order to be performed.
  • If the main member and its alias names are copied, their relationship remains the same on the output PDS. Aliases are not supported for members of HiperFOCUS files.
  • If a specified ddname has been allocated with a member name, the data set is treated as sequential. However, if input and/or output is a HiperFOCUS file, member name(s) overriding the allocated one can be specified in the command.
  • If the entire PDS is to be copied (no member list was provided), all members are replaced, regardless of the presence or absence of the REPLACE keyword.


Example: Using the DYNAM COPY Command

Copies the entire data set, whether it is a PDS or not.

DYNAM COPY MYDD MYID.DATA.SET

All four commands are equivalent. Either input or output may be a sequential data set, or both are PDSs.

DYNAM COPY MYDD MYID.DATA.SET MEMBER MEM
DYNAM COPY MYDD MYID.DATA.SET(MEM)
DYNAM COPY MYDD(MEM) MYID.DATA.SET
DYNAM COPY MYDD MEMBER MEM MYID.DATA.SET

Copies and renames one member.

DYNAM COPY MYID.DATA.LIB TO MYDD(MEM1,MEM2)

Copies two members.

DYNAM COPY MYID.DATA.LIB TO MYDD(MEM1 MEM2)

Copies two members into same PDS with renaming.

DYNAM COPY MYDD(OLD1,NEW1,R OLD2,NEW2)
DYNAM COPY MYDD(OLD1,NEW1 OLD2,NEW2) REPL

Top of page

x
COPYDD Subcommand

How to:

The DYNAM COPYDD command copies a sequential data set, a PDS member, or a HiperFOCUS file.



x
Syntax: How to Copy Sequential Data Sets, PDS Members, or HiperFOCUS Files
DYNAM COPYDD ddname1[(mem1)] ddname2[(mem2)]

where:

ddname1

Is the ddname of the input data set.

mem1

Optional. Is the input member name.

ddname2

Is the ddname of the output data set.

mem2

Optional. Is the output member name.

Note:



Example: Using the DYNAM COPYDD Command

MYDD1 is a sequential file or is allocated with a member name. If MYDD2 is allocated with a member name, MEM2 is valid only if at least one of the ddnames is a HiperFOCUS file.

DYNAM COPYDD MYDD1 MYDD2(MEM2)

Top of page

x
DELETE Subcommand

How to:

The DYNAM DELETE command deletes an entire z/OS data set or selected PDS members.



x
Syntax: How to Delete an Entire z/OS Data Set or Selected PDS Members

The syntax to delete an entire z/OS data set is:

DYNAM DELETE dsname

To delete individual members use:

DYNAM DELETE dname [MEMBER] members 

where:

DELETE

Can be abbreviated as DEL.

dsname

Is the data set name to be deleted and uncataloged.

dname

Is the dsname or ddname of a PDS containing one or more members to be deleted. The ISPF-like lock is obtained.

MEMBER

May be omitted if the members are specified in parentheses.

members

Can be a single member name or a list of members. If the members are enclosed in parentheses, blanks before the left parenthesis can be omitted.



Example: Using the DYNAM DELETE Command
DYNAM DELETE MYID.DATA.OLD
DYNAM DEL MYID.DATA.LIB MEMBER OLD1,OLD2
DYNAM DELETE MYDD(OLD1,OLD2)
DYNAM DEL MYDD(OLD1 OLD2 OLD3)

Top of page

x
RENAME Subcommand

How to:

The DYNAM RENAME command renames an entire z/OS data set or selected PDS members.



x
Syntax: How to Rename an Entire z/OS Data Set or Selected PDS Members

The syntax to rename an entire z/OS data set is:

DYNAM RENAME dsname1 dsname2

To rename individual members, use

DYNAM RENAME dname [MEMBER] members [REPLACE]

where:

RENAME

Can be abbreviated as REN.

dsname1

Is the data set name to be renamed and uncataloged.

dsname2

Is the new name to be assigned to the data set and cataloged.

dname

Is the dsname or ddname of a PDS containing one or more members to be renamed. The ISPF-like lock is obtained.

MEMBER

May be omitted if the members are specified in parentheses.

members

Can be a single member specification or a list of members. If the members are enclosed in parentheses, blanks before the left parenthesis can be omitted.

REPLACE

Optional. Replaces all members matching the specified new names.

A member specification has the following syntax:

oldmem,newmem[,REPLACE]

where:

oldmem

Is the original member name.

newmem

Is the new member name.

REPLACE

Is optional and replaces existing members with the same name as newmem.

Since the comma is used in member specifications, each pair of members is separated with one or more blanks when specified in a list. Therefore, a list of member specifications is always enclosed in parentheses.



Example: Using the DYNAM RENAME Command
DYNAM RENAME MYID.DATA.OLD MYID.DATA.NEW
DYNAM REN MYID.DATA.LIB MEMBER OLD,NEW,R
DYNAM RENAME MYDD(OLD1,NEW1,R OLD2,NEW2)
DYNAM REN MYDD(OLD1,NEW1 OLD2,NEW2) REPL

Top of page

x
SUBMIT Subcommand

How to:

The DYNAM SUBMIT command submits jobs to z/OS.



x
Syntax: How to Submit a Job to z/OS
DYNAM SUBMIT dname [[MEMBER] members]

where:

SUBMIT

Can be abbreviated as SUB.

dname

Is the dsname or ddname of the input data set(s) containing JCL to be submitted. The ddname can specify a concatenation of data sets.

MEMBER

May be omitted if the members are specified in parentheses.

members

May be a single member name or a list of members. When submitting a member list, the resulting job stream is the concatenation of the members. If the members are enclosed in parentheses, blanks before the left parenthesis can be omitted.



Example: Using the DYNAM SUBMIT Command
DYNAM SUBMIT MYDD MEMBER ASM,PROG,LKED
DYNAM SUB MYDD(ASM,PROG,LKED)
DYNAM SUB MYID.DATA.LIB(CREATE LOAD)
DYNAM SUBMIT MYFILE

Note: The DYNAM SUBMIT command provides an interface with the submit user exit IKJEFF10 as described in the IBM TSO Extensions Version 2 Customization manual. For details, see the Information Builders Technical Memo 7859, Enabling a Site-Specified Submit Exit Routine, or view FOCCTL.DATA(SUBMITZ2).


Top of page

x
COMPRESS Subcommand

How to:

The DYNAM COMPRESS command compresses the partitioned data sets (PDS).



x
Syntax: How to Compress a Partitioned Data Set
DYNAM COMPRESS dname [dname]...

where:

COMPRESS

Can be abbreviated as COMP.

dname

Is the dsname or ddname of a PDS to be compressed. The ISPF-like lock is obtained.

If the dsname is specified, it is allocated as OLD. If the ddname is specified and status is SHR, you have to make sure that another user does not access the PDS during the compress operation.

Note: DYNAM COMPRESS uses the IBM utility IEBCOPY, and therefore can only be used when running with APF authorization.



Example: Using the DYNAM COMPRESS Command
DYNAM COMPRESS MYDD
DYNAM COMPRESS MYID.DATA.LIB
DYNAM COMP MYDD MYID.DATA.LIB

Top of page

x
Comparison of TSO Commands, JCL, and DYNAM

This section shows examples of TSO ALLOCATE and FREE commands, JCL commands, and the equivalent DYNAM commands.



Example: Allocating an Existing File

TSO:

 TSO ALLOC F(FOCEXEC) DA('MYUSER.FOCEXEC.DATA') SHR

 

JCL:

//FOCEXEC DD DSN=MYUSER.FOCEXEC.DATA,DISP=SHR

 

DYNAM:

 DYNAM ALLOC FILE FOCEXEC DA MYUSER.FOCEXEC.DATA SHR


Example: Creating a New Data Set

TSO:

TSO ALLOC F(FOCEXEC) DA('MYUSER.FOCEXEC.DATA') -
    SPACE(5,3) TRACKS CATALOG DIR(2) -
    UNIT(SYSDA) USING(NEWDCB) -
    LRECL(80) RECFM(F B) BLKSIZE(1600)

 

JCL:

//FOCEXEC DD DSN=MYUSER.FOCEXEC.DATA,DISP=(NEW,CATLG),
//   SPACE=(TRK,(5,3,2)),UNIT=SYSDA,
//   DCB=(LRECL=80,RECFM=FB,BLKSIZE=1600)

 

DYNAM:

DYNAM ALLOC FILE FOCEXEC DA MYUSER.FOCEXEC.DATA -
      SPACE 5,3 TRACKS CATLG DIR 2 UNIT SYSDA - 
      LRECL 80 RECFM FB BLKSIZE 1600


Example: Freeing Files

TSO:

TSO FREE F(FOCEXEC)

 

DYNAM:

DYNAM FREE FILE FOCEXEC


Example: Concatenating Files

TSO:

TSO ALLOC F(FOCEXEC) DA('MYUSER.FOCEXEC.DATA'-
    'MYUSER.PROGRAMS.DATA') SHR

 

JCL:

//FOCEXEC DD DSN=MYUSER.FOCEXEC.DATA,DISP=SHR
//   DD DSN=MYUSER.PROGRAMS.DATA,DISP=SHR

 

DYNAM:

DYNAM ALLOC FILE FOCEXEC DA MYUSER.FOCEXEC.DATA SHR
DYNAM ALLOC FILE PROGRAMS DA MYUSER.PROGRAMS.DATA SHR
DYNAM CONCAT FILE FOCEXEC PROGRAMS

Information Builders