Posted: Wed Apr 09, 2008 10:24 am Post subject: Writing Dynamic PDS members based on Input file
Hi,
I am really sorry if you feel Im posting this without browsing the existing threads. Im really running short of time, so I will post this here and start looking for references. Either of it comes first, I will take it.
I need to read an Input file and based on its contents I need to write it to various Members in PDS
I/P File :
********************************* Top of Data **********************************
PZACR001;COB;DEL
PZACX001;COB;DEL
PZAER002;EZT;DEL
PZAER003;EZT;DEL
******************************** Bottom of Data ********************************
Output will be on various members of PDS. Each type will have its own PDS. For the above example
MYID.TEST.PDS(COBOL) should have
-SEL PZACR001, EXEC
-SEL PZACX001, EXEC
-END
MYID.TEST.PDS(EASYTRV) should have
-SEL PZAER002, EXEC
-SEL PZAER003, EXEC
-END
Like this based on Input I need to write onto 8 Diff PDS members.
Thanks _________________ Arvind
"You can make a difference with your smile. Have that with you always"
Each PDS should have a footer like "-END" ... gimme the sample code for that too pls. I am reading DFSORT and hope to learn all these soon. Just a help this time. _________________ Arvind
"You can make a difference with your smile. Have that with you always"
I am getting S213 Abend. I guess its something to do with DISP parameter. Since all belongs to same PDS, we will have internal OPEN / CLOSE problem. I am working on it to correct it.
Thanks _________________ Arvind
"You can make a difference with your smile. Have that with you always"
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Thu Apr 10, 2008 10:33 am Post subject:
arvibala,
Just realized that you canNOT use OUTFIL to write to PDS members in parallel. You can do that with regular sequential data sets or with PDSE members, but NOT with PDS members.
Use the following JCL which will give you the desired results
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum