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: 10274
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: 1825
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm


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