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: 10873
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top