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: 2023
Location: USA

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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
Search our Forums:

Back to Top