IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL to read ps and convert it to readable output


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Discuss99

New User


Joined: 01 Mar 2022
Posts: 1
Location: Hong Kong

PostPosted: Tue Mar 01, 2022 10:24 pm
Reply with quote

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)
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1564

PostPosted: Wed Mar 02, 2022 7:43 am
Reply with quote

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)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
No new posts How do I get the desired output using... DFSORT/ICETOOL 2
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Inserting variable length into output... JCL & VSAM 2
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top