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: 10552
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: 183
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 calculate the record count and based ... naveensrimf DFSORT/ICETOOL 1 Tue Jan 08, 2019 11:20 pm
No new posts Transferring file to Mainframes Shinoj Vijayakumar IBM Tools 3 Thu Dec 06, 2018 2:35 pm
No new posts Convert VBA file to FB! Vignesh Sid SYNCSORT 5 Mon Dec 03, 2018 1:27 pm
No new posts Another 39 File Status on VB file socker_dad COBOL Programming 5 Tue Nov 27, 2018 6:11 am
No new posts How to handle different file length b... javen777 DFSORT/ICETOOL 15 Mon Nov 26, 2018 12:13 pm

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