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: 10232
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: 1756
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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