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: 10210
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: 1722
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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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