| Author |
Message |
BhavanaS
New User
Joined: 20 Feb 2008 Posts: 10 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, |
|
| Back to top |
|
 |
References
|
Posted: Thu May 08, 2008 9:44 am Post subject: Re: creating a member in pds using jcl |
 |
|
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6033 Location: 221 B Baker St
|
|
|
|
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 |
|
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2186 Location: Brussels once more ...
|
|
|
|
| Quote: |
| Will something like this work |
Did you try it for yourself before posting ? |
|
| Back to top |
|
 |
|
|
|