IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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.

Use [URL] BBCode for Links

Use [URL] BBCode for Links
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 1
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
No new posts How to find which file contains my se... DFSORT/ICETOOL 6
No new posts IGZ0035S THERE WAS AN UNSUCCESSFUL OP... COBOL Programming 3
No new posts Hex Value - vb file replace old date ... DFSORT/ICETOOL 14

Back to Top