BhavanaS New User Joined: 20 Feb 2008 Posts: 17 Location: India
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
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 Site Director Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
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.
//yourdd dd dsn=the.pds.dsn(themem),disp=shr
expat Global Moderator Joined: 14 Mar 2007 Posts: 8646 Location: Back in jolly old England
Will something like this work
Did you try it for yourself before posting ?
All times are GMT + 6 Hours