View previous topic :: View next topic
|
Author |
Message |
Hari108 Currently Banned New User
Joined: 29 Jun 2006 Posts: 5
|
|
|
|
Hi,
I have a requirement here...
I need to copy a string from the input file name and append it to the output file name.
e.g.
Input file: PAY.DT03042008093034.FILE
after processing the o/p shld be like this...
Output file: RESULT.DT03042008093034.FILE
I need to copy the time stamp from the input file name which is the middle qualifier in the file name. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The filename is invalid for z/OS |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Once you construct a valid (unix and windows style names are not valid) dataset name, how will it be specified in the input DD statement?
If the input file name might change from run to run, i'd suggest you put the process in a PROCedure and specify the variable part of the name in a symbolic parameter. The same symbolic parameter could be used in the output dataset name and the value would be automatically used both places (or even in subsequent steps of the jobstream).
To learn about valid dataset names and symbolic parameters, i'd suggest you look in the JCL manuals available via the "IBM Manuals" link at the top of the page. If you read something that is not clear to you post it here as well as your question about what is confusing.
Someone will be here. |
|
Back to top |
|
|
|