JCL STEP PARAMETER



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL STEP PARAMETER

Postby chetan_007 » Fri Mar 13, 2009 2:18 pm

In below JCL STEP, could any one please explain what is DYNAMNBR parameter and why it is used?

STEP001 EXEC PGM=IKJEFT1B,DYNAMNBR=500

Thanks
chetan_007
 
Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL STEP PARAMETER

Postby swd » Fri Mar 13, 2009 7:10 pm

Hi, as far as I understand it, the DYNAMNBR is used when a program dynamically allocates datasets, that is where the dataset is not specified in a DD card, perhaps for sort work files etc. The number should be an estimated number of dynamically allocated datasets plus the number specified in DD statements. If this number is exceeded then your job will fail. 500 seems to be plenty though!
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: JCL STEP PARAMETER

Postby chetan_007 » Fri Mar 13, 2009 7:49 pm

Thanks very much for the info.

Could you please explain me what do you mean by dynamically allocation of datasets?
Could you please explain with an example.

Thanks in advance.
chetan_007
 
Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL STEP PARAMETER

Postby Bill Dennis » Fri Mar 13, 2009 11:47 pm

Suppose your step is doing an FTP. The FTP program reads the input statements and finds the file name you wish to send/receive. The program does dynamic allocation to associate the file with a DDname. Now the program can do an OPEN of the DDname and read/write records. It appears to the system just like you had added the DDname to your step, like STEPLIB or SYSPRINT.

Many programs under TSO do dynamic allocation. ISPF EDIT, library utilities and others all dynamically allocate the files you specify on the panels. If you do a TSO command LISTALC STATUS in option 6 you'll see files allocated that are not in your LOGON PROC.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post