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

SORT to append Month and YEAR in MMYY formate in file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tisamf

New User


Joined: 08 Mar 2017
Posts: 1
Location: India

PostPosted: Wed Mar 08, 2017 4:46 pm
Reply with quote

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'
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Mar 08, 2017 7:36 pm
Reply with quote

tisamf,

Welcome to the forums!

You could try some 'search'ing here.

ibmmainframes.com/viewtopic.php?t=49983&highlight=current+month

ibmmainframes.com/viewtopic.php?t=25453&highlight=current+month
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top