Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: SORT to append Month and YEAR in MMYY formate in file

$
0
0
Author: tisamf
Subject: SORT to append Month and YEAR in MMYY formate in file
Posted: Wed Mar 08, 2017 4:46 pm (GMT 5.5)

Hi, I have gone through many posts but unable to find exact answer. My requirement is to append current month and year format in the data set specified in JCL

For example,
Code:
//Jobname ....Job card
//STEP01 EXEC PGM=SORT
//SORTIN   DD * 
  &file='data1/CB1234MMYY.txt'
  &msg='CB1234MMYY.int'
//SORTOUT DD output file
//SYSIN    DD *

What should be the condition here so that the output data set will have data:
&file='data1/CB12340317.txt'
&msg='CB12340317.int

Where 0317 is current month and year in MMYY format.

Note: I can not use REXX tool for this.

Any help will be appreciated.

coded and 'file' changed to 'data set'


Viewing all articles
Browse latest Browse all 8500

Trending Articles