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: 2286
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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Convert CSV to flat file. DFSORT/ICETOOL 6
No new posts convert arbitrary UTC to local (SYD) ... COBOL Programming 1
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
No new posts Convert Service Unit to CPU Seconds All Other Mainframe Topics 1
Search our Forums:


Back to Top