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

Add week number to a file name or replace _WW in input recor


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 10
Location: India

PostPosted: Thu Jan 03, 2019 6:49 am
Reply with quote

Hi I have requirement to add add week number to the file being FTP so in ftp command put 'input file' 'output_Week_WW' I need to replace _WW with week number. I searched ever where and I can find only day of the week or dates or Julian formats or days. Is there a way to achieve week number in a year.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Thu Jan 03, 2019 7:54 am
Reply with quote

see here for the relevant considerations for the week number

www.ibmmainframeforum.com/clist-rexx/topic3963.html?hilit=iso
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Thu Jan 03, 2019 6:28 pm
Reply with quote

What scheduler do you use? TWS has &CWW and &OWW variables. I'm sure the others have something similar.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top