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 

How to copy a sequential file into a PDS member ?

 
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
ANDY
Beginner


Joined: 07 Feb 2004
Posts: 127
Topics: 67

PostPosted: Tue Jun 07, 2005 6:47 am    Post subject: How to copy a sequential file into a PDS member ? Reply with quote

Can someone supply a JCL to realize the above function?

Appreciate !!!
_________________
cheers,
Andy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Jun 07, 2005 7:57 am    Post subject: Reply with quote

Andy,

The following JCL will give you the desired results.

Code:

//STEP0100 EXEC PGM=SORT                   
//SYSOUT   DD SYSOUT=*                     
//SORTIN   DD DSN=YOUR SEQ FILE,
//            DISP=SHR           
//SORTOUT  DD DSN=YOUR PDS(MEMBER NAME),
//            DISP=SHR                     
//SYSIN    DD *                           
  SORT FIELDS=COPY                         
/*                                         


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Jun 07, 2005 10:23 am    Post subject: Reply with quote

Usualy - I do it with FILEAID 3.3 (COPY).

I think that you can do it with IEBGENER, too.

O.
________
hash honey oil


Last edited by ofer71 on Sat Feb 05, 2011 11:21 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
ANDY
Beginner


Joined: 07 Feb 2004
Posts: 127
Topics: 67

PostPosted: Mon Jun 13, 2005 12:55 am    Post subject: Reply with quote

Kolusu,

Thanks. It works.

Ofer71,

IEBGENER has some errors when copy.
_________________
cheers,
Andy
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