to copy dynamic files to a gdg

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
sam2303
Member
Posts: 1
Joined: Sat May 13, 2017 11:00 pm

to copy dynamic files to a gdg

Post by sam2303 » Sat May 13, 2017 11:10 pm

i,

ineed to copy the dated files to a gdg version

something like this

input- dsn=doc.sam.w*
output dsn=doc.sam.gb.file(+1)


Can anyone help in this
thanks,

Sam

gsb198926
Member
Posts: 2
Joined: Tue Jul 18, 2017 2:18 pm

Post by gsb198926 » Thu Jul 27, 2017 3:01 pm

this can be achieved using SORT :

//STEP00 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=< input.file >,DISP=SHR
//SORTOUT DD DSN=output.file.gdg(+1),
// DISP=(NEW,CATLG,DELETE),
//SYSIN DD *
SORT FIELDS=COPY
/*


are you looking for REXX ?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others