JCL UCOPY

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Peto
Member
Posts: 1
Joined: Thu Apr 02, 2015 7:46 pm

JCL UCOPY

Post by Peto » Thu Apr 02, 2015 8:30 pm

Hi, I have some code below and want to know how to add a date suffix yyyymmdd or just yymm to the destinated file name G:\dep\PM_Campaign_yymmdd.txt or G:\dep\PM_Campaign_yymm.txt respectively? Thanks.

//UCDNLD20 EXEC P2CUCPY,COND=(0,NE)
//UNVIN DD DSN=XXXXXX.P1234567.CAMPGN.MTH6,DISP=SHR
//*
//UCMDOPT DD DISP=SHR,DSN=UCMDOPT.FILE(UKK22222)
//SYSIN DD *
-host 10.205.26.72
-cmd 'ucopy > G:\dep\PM_Campaign_yymmdd.txt'
-userid APPLE\UKK22222
-x UCMDOPT
/*
Peto

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Sat Apr 04, 2015 7:38 pm

If you have z/OS 2.1 you can substitute symbols in DD * data. I dislike DD * in Production...

If you put the control cards in a file, you can just change the file. DFSORT can take a symbol directly from a PARM, and current versions of SyncSORT probably as well.

Mobiliana
Member
Posts: 2
Joined: Wed Jul 08, 2015 12:00 pm
Contact:

Post by Mobiliana » Wed Jul 08, 2015 12:29 pm

I want to know this information very seriously.

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