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: 2285
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 Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 1 Sat Aug 19, 2017 2:33 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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