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

Copying Multiple files into single GDG version


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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 06, 2014 5:50 pm
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: 2455
Location: Hampshire, UK

PostPosted: Tue May 06, 2014 6:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top