BhavanaS
New User
Joined: 20 Feb 2008 Posts: 17 Location: India
|
|
|
|
Hi,
I have a file generated in an sqr program.I want this file to be written to a member in a pds which is already created.Can you share the code for this step?Lets say I have the logical file name SQRXX.OUTFLE1. Will something like this work
Code: |
000014 //SQRXX.OUTFLE1 DD DSN=&INDEX01.UNLOAD.JCLS(SU1),
000015 // DISP=(NEW,CATLG,DELETE),
000016 // UNIT=SYSDA,
000017 // SPACE=(CYL,(150,25),RLSE),
000018 // DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000) |
Kindly help me out.
Thanks in advance, |
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the dataset already exists, no - that jcl will not work.
To add a member to an existing dataset simply specify the ddname, the dsn and member name, and use disp=shr.
Code: |
//yourdd dd dsn=the.pds.dsn(themem),disp=shr |
|
|