Discuss99
New User
Joined: 01 Mar 2022 Posts: 1 Location: Hong Kong
|
|
|
|
Try to write a JCL to read a file with PS to something readable, if I used (1,131), then output is same as input file , but now I try to convert PS to Syd but failed , first 2 fields are date field in PS format x’20201231’. What wrong of mine one ? Thanks
| Code: |
| outrec fields= (1,4, pd , to=zd, length=8, 5, 125) |
|
|
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 2286 Location: USA
|
|
|
|
| Discuss99 wrote: |
Try to write a JCL to read a file with PS to something readable, if I used (1,131), then output is same as input file , but now I try to convert PS to Syd but failed , first 2 fields are date field in PS format x’20201231’. What wrong of mine one ? Thanks
| Code: |
| outrec fields= (1,4, pd , to=zd, length=8, 5, 125) |
|
0. This is not JCL!!! Not at all!!!!!
1. Blanks are not allowed in the middle of parameter string
2. The date format (in pos. 1-4) is not PD. (RTFM)
You need to use
| Code: |
| OUTREC BUILD=(1,4,HEX,5,125) |
|
|