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
 

 

SORT to append Month and YEAR in MMYY formate in file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: SORT to append Month and YEAR in MMYY formate in file
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: 2276
Location: @my desk

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

tisamf,

Welcome to the forums!

You could try some 'search'ing here.

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

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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