On Wed, 15 Jun 2022 15:58:57 +0300, saurabh khandelwal wrote:
>
>Thank for reply but system doesn't take %D as date variable. It taking as
>file name. So variable in file yyyymmdd not getting replaced with actual
>date
>
%D is not a "date variable". It is a substitution element in the argument
to the "date" command.
Did you try my suggestion:
date '+get EBC-GOV-%D.txt'
???
>On Wed, Jun 15, 2022, 15:54 Paul Gilmartin wrote:
>> >
>> >I am am running below Job in TSO env and getting to get file file from
>> >windows to Mainframe env.
>> >
>> >Initially file was static and all worked well. But now, requirement is to
>> >get the file, which has current time stamp on daily basis.
>> >
>> >Ex : EBC-GOV-yyyymmdd.txt' in this yyyymmdd should be replace with
>> >year/month/date.
>> >
>> # Change:
>> echo 'get EBC-GOV-yyyymmdd.txt'
>>
>> # to
>> date '+get EBC-GOV-%D.txt'
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN