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
 

 

Copying Multiple files into single GDG version

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

New User


Joined: 15 Nov 2013
Posts: 10
Location: India

PostPosted: Tue May 06, 2014 5:49 pm    Post subject: Copying Multiple files into single GDG version
Reply with quote

Hi,

I am trying to copy multiple files into a single GDG version using ADRDSSU but unable to do so.

The input files will start like DEB314O.R2.VH0.PCS.AR1R.**
I want to copy all the files into a single GDG version in single step.

Please advice.

Code:
//STEP2   EXEC PGM=ADRDSSU                               
//SYSPRINT DD  SYSOUT=*                                   
//SYSUDUMP DD  SYSOUT=*                                   
//SYSIN    DD  *                                         
 COPY                              -                     
   DATASET(                        -                     
      INCLUDE ((DEB314O.R2.VH0.PCS.AR1R.**   -           
                DEB314O.R2.VH0.PCS.AR1.EINGABE(+1)   -   
              ))) -                                       
  TOL(ENQF)   -                                           
  REPUNC  -                                               
  CATALOG    -                                           
  ALLEXCP    -                                           
  ALLDATA(*) -                                           
  PROCESS(SYS1)   -                                       
  TGTALLOC(SOURCE)  -                                     
  OPTIMIZE(4)  -                                         
/*


Error message:

INITIAL SCAN OF USER CONTROL STATEMENTS COMPLETED
RIGHT PARENTHESIS MISSING AFTER '(DEB314O.R2.VH0.PCS.'
INPUT STREAM END-OF-FILE FOUND BEFORE END OF COMMAND
DFSMSDSS PROCESSING COMPLETE. HIGHEST RETURN CODE IS 0008

Thanks
Rameyshkanthan
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue May 06, 2014 5:50 pm    Post subject: Reply to: Copying Multiple files into single GDG version
Reply with quote

fix the wrong DFDSS statement icon_evil.gif

lots of examples in the forum with the proper syntax
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1788
Location: UK

PostPosted: Tue May 06, 2014 6:45 pm    Post subject: Reply to: Copying Multiple files into single GDG version
Reply with quote

It also looks as though you are tryinng to create a new generation dataset - not version. to crate a new version you would have to code the explicit generation and the required version (Vnn)
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am


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