View previous topic :: View next topic |
Author |
Message |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Wed Jun 20, 2012 2:25 pm Post subject: Flat files to new PDS members |
|
|
Hi,
Can you one help me in a JCL which should take flat files as input and put each flat file as a new member of a new/exisiting PDS?
Thanks |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jun 20, 2012 2:37 pm Post subject: |
|
|
Suggest you bookmark this: DFSMS Utlities,
Look at IEBGENER (Sequential Copy/Generate Data Set) Program
you could also use SORT with OPTION COPY.
remember, the disp for a pds should always be SHR or OLD, never MOD. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Wed Jun 20, 2012 2:54 pm Post subject: |
|
|
Do you have a sample jcl for that? in SYSUT2, I have to define as follows
SYSUT2 DD DSN=datasetname(member),DISP=(,catlg),.....
I get the following error
MEMBER NAME IS NOT ALLOWED FOR PDSNAME with DSORG=PS |
|
Back to top |
|
 |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Wed Jun 20, 2012 2:59 pm Post subject: |
|
|
sorry.never mind.its working fine now.thanks very much |
|
Back to top |
|
 |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Wed Jun 20, 2012 3:06 pm Post subject: |
|
|
for 1 file its OK.But I have multiple files and I want to create multiple members in the same PDS.In this case this is not working.Any idea? |
|
Back to top |
|
 |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Wed Jun 20, 2012 3:12 pm Post subject: |
|
|
sorry.pardon me again.mod worked for new dataset |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Jun 21, 2012 12:24 am Post subject: |
|
|
You really do need to explain your problem better.
If the JCL works for one PS file, creating a new member, so all you need to do is to run the JCL multiple times, unless I'm missing something here.
STEP 1 - Create PDS
STEP 2 > STEP nn - Run job to create each member
So what is the problem, that you don't want to do it manually ? _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
|
|