Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to copy Dataset contents to a Dataset Member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tishasha

New User


Joined: 14 Jun 2007
Posts: 5
Location: Manila

PostPosted: Fri Jun 15, 2007 7:45 am    Post subject: How to copy Dataset contents to a Dataset Member
Reply with quote

Hi...
Is it possible to copy dataset contents into a dataset member? Or, it is also possible to output a SORT into a dataset member and NOT into a dataset..icon_smile.gif

any help highly appreciated. thanks!!
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 15, 2007 8:11 am    Post subject:
Reply with quote

Hello,

Either may be done.

For example - data in a PS dataset with an lrecl of 80 may be copied or sorted into a member of a pds with an lrecl of 80.
Back to top
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Fri Jun 15, 2007 5:39 pm    Post subject:
Reply with quote

Hi,

In the SORTOUT Mention the PDS Name..

below using IEBCOPY :

Code:

//STEP01 EXEC PGM=IEBCOPY                     
//INDD  DD DSN=T.XXXXXXXX.XXXX,DISP=SHR
//OUTDD DD DSN=T.XXXXXXXX.XXXX.XXXXXX,DISP=SHR
//SYSIN DD *                                   
 COPY INDD=((INDD,R)),OUTDD=OUTDD             
 COPY INDD=INDD , OUTDD=((OUTDD,R)),
 S M=XXXXXXXX                         /*member name*/         
//*                                           
//                                             
Back to top
View user's profile Send private message
tishasha

New User


Joined: 14 Jun 2007
Posts: 5
Location: Manila

PostPosted: Sat Jun 16, 2007 7:28 am    Post subject: Re: How to copy Dataset contents to a Dataset Member
Reply with quote

i think i got it... thanks guys!! icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us