Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Add week number to a file name or replace _WW in input recor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 7
Location: India

PostPosted: Thu Jan 03, 2019 6:49 am    Post subject: Add week number to a file name or replace _WW in input recor
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

Senior Member


Joined: 14 Mar 2007
Posts: 10576
Location: italy

PostPosted: Thu Jan 03, 2019 7:54 am    Post subject: Reply to: Add week number to a file name or replace _WW in input recor
Reply with quote

see here for the relevant considerations for the week number

http://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: 193
Location: UK

PostPosted: Thu Jan 03, 2019 6:28 pm    Post subject: Reply to: Add week number to a file name or replace _WW in input recor
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts count the number of records from diff... janmejay CA Products 2 Mon Mar 25, 2019 11:29 pm
No new posts How to copy\replace the members in pr... abdulrafi JCL & VSAM 6 Fri Mar 22, 2019 7:02 pm
No new posts Attachmate file transfer question John Poulakos All Other Mainframe Topics 3 Wed Mar 20, 2019 1:45 am
No new posts Using the SAS module to email mainfra... elixir1986 JCL & VSAM 5 Thu Mar 14, 2019 10:04 pm
No new posts File data to symbolic parameter madprasy JCL & VSAM 5 Wed Mar 13, 2019 11:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us