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: 10607
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 Access file which has DSNTYPE=LIBRARY maxsubrat JCL & VSAM 11 Fri Jun 21, 2019 4:09 pm
No new posts Mainframe to linux file count mismatch shreya19 All Other Mainframe Topics 4 Thu Jun 13, 2019 9:49 pm
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts How to force PULL to read user-input ... Andi1982 CLIST & REXX 5 Thu May 09, 2019 6:27 pm

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