On Wed, 22 Jun 2022 16:00:38 +0300, saurabh khandelwal wrote:
>
>Thanks you so much. Finally below code worked. But in this, we are getting
>current (today’s date) but in some of the files, we are getting yesterday’s
>date (today’s -1) .
>
>How can we make this process work for yesterday’s date.
>
A Rexx approach for "yesterday’s date":
12 *-* B = date( 'Base' )
>=> "738327"
13 *-* B = date( 'Standard', B-1, 'Base' )
>V> "738327"
>=> "20220621"
14 *-* B = translate( 'cd.ef.gh', B, 'abcdefgh' )
>V> "20220621"
>=> "22.06.21"
15 *-* call lineout , 'get NonMon_DailyExtract_KWT_'||B'.txt'
>V> "22.06.21"
get NonMon_DailyExtract_KWT_22.06.21.txt
--
Mr. Natural says, Use the right tool for the job.
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN