IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to copy Dataset contents to a Dataset Member


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 15, 2007 8:11 am
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top