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

Need help with a PDS to GDG copy


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Darrell Wilson

New User


Joined: 07 Apr 2011
Posts: 14
Location: United States

PostPosted: Thu Apr 28, 2011 5:42 am
Reply with quote

Gerry,

Decided to try one last time to get this to work. You are a genius, your JCL worked like a charm. I can not thank you enough. I have been struggling with this for several days. You are the Man!
Back to top
View user's profile Send private message
hailashwin

New User


Joined: 16 Oct 2008
Posts: 74
Location: Boston

PostPosted: Sat Apr 30, 2011 9:03 am
Reply with quote

There should be something that you are missing in what you tried initially. Did you actually try giving the GDG as the output file in the IEBPTPCH step itself. I tried it and did not encounter an issue.

Code:

//STEP1 EXEC PGM=IEBPTPCH                         
//SYSPRINT DD SYSOUT=*                           
//SYSUT1 DD  DSN=PDS,DISP=SHR       ->> Your PDS
//SYSUT2 DD  DSN=GDG(+1),               ->> Your GDG
//            DISP=(NEW,CATLG,CATLG),             
//            MGMTCLAS=WORKW,                     
//            SPACE=(TRK,(10,10),RLSE),           
//            DCB=(RECFM=FB)                     
//SYSIN DD *                                     
          PUNCH TYPORG=PO                         
/*                                               


If this did not work, please show your SYSOUT message..

If you are using FILEAID, this should also work..

Code:


//STEP010 EXEC PGM=FILEAID                         
//SYSPRINT DD SYSOUT=*                             
//SYSTOTAL DD SYSOUT=*                             
//SYSLIST  DD SYSOUT=*                             
//DD01     DD DSN=PDS,DISP=SHR       ->> Your PDS
//DD01O    DD DSN=GDG(+1),              ->> Your GDG
//            DISP=(,CATLG,DELETE),               
//            UNIT=SYSDA,                         
//            SPACE=(TRK,(50,10),RLSE)             
//SYSIN DD *                                       
*                                                 
$$DD01 COPY MEMBERS=ALL,OUT=0                     
//*                                               


Thanks,
Ashwin.
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top