Hi, I'm not too familiar with t
Hi, I'm not too familiar with t
(OP)
Hi,
I'm not too familiar with the rexx but I'd like to use it in a rename file by idcams by adding the date and time to the input file without exceeding 44 characters
for example :
//SYSIN DD *
ALTER &dsn1 -
NEWNAME(&dsn1.&date.&time) ===> '<= 44' characters
Thank's for your help.
I'm not too familiar with the rexx but I'd like to use it in a rename file by idcams by adding the date and time to the input file without exceeding 44 characters
for example :
//SYSIN DD *
ALTER &dsn1 -
NEWNAME(&dsn1.&date.&time) ===> '<= 44' characters
Thank's for your help.
RE: Hi, I'm not too familiar with t
If you really have to do it programmatically then this is a rough outline:
If not running in batch allocate the jcl member to be edited
If runnung in batch include a DD statement for the same - saves allocation woes!
Read the JCL using EXECIO. You can read into a stem and if you use * as the number of records to read then all will be read in and yourstemname.0 will be populated with the record count.
Traverse the stem until you find the record to be changed
Get the date and time using the date function and time function.
Manipulate the date and time into the format that you want
Reconstruct the record with your information and store it back at the same spot in the stem.
Use EXECIO to write out the stem specifying yourstemname.0 as the number of records to write.
End run.
Nic
RE: Hi, I'm not too familiar with t
RE: Hi, I'm not too familiar with t
RE: Hi, I'm not too familiar with t
If you have a current Rexx/ISPF process and you need to modify it to include date and time in the currently generated data set name then you need to look at the existing code to figure out how to modify it. Some one must be tasked with maintaining that code so they would be the people to ask.
Nic
RE: Hi, I'm not too familiar with t