Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
vidyakonda

New User

Joined: 25 Jan 2006
Posts: 8

 Posted: Fri May 23, 2008 2:24 pm    Post subject: Convert PD to ZD using SYNCSORT Hi, I have the following problem while trying to sort the file. Input file in hex format(2 records): ...æ 0109 0C9C --- ...æ 0109 0C9C I had used syncsort SORT FIELDS=COPY INREC FIELDS=(1:1,2,PD,ZD) Output is: 00A 00A My question is why the output is 00A instead of 001. Ofcourse HEX on show 001 but when I view I should be able to see as 001. Hope its clear. Please suggest. Thanks, Vidya

gabriel.ryoga

New User

Joined: 07 Jun 2007
Posts: 31
Location: Spain

 Posted: Fri May 23, 2008 2:41 pm    Post subject: It's because you are converting PD to ZD, with a C for displaying the sign. Example: 00A is 0000C1 in HEX. If you want to display 001, try converting to ZDF: SORT FIELDS=COPY INREC FIELDS=(1:1,2,PD,ZDF) that will make: 001 = 0000F1 in HEX.
vidyakonda

New User

Joined: 25 Jan 2006
Posts: 8

 Posted: Fri May 23, 2008 3:01 pm    Post subject: Reply to: Convert PD to ZD using SORT or SYNCSORT Wow..thanks.its worked fine.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us