MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flat files to new PDS members

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Wed Jun 20, 2012 2:25 pm    Post subject: Flat files to new PDS members Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 20, 2012 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Wed Jun 20, 2012 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Wed Jun 20, 2012 2:59 pm    Post subject: Reply with quote

sorry.never mind.its working fine now.thanks very much
Back to top
View user's profile Send private message
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Wed Jun 20, 2012 3:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Wed Jun 20, 2012 3:12 pm    Post subject: Reply with quote

sorry.pardon me again.mod worked for new dataset
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Jun 21, 2012 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group