Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Convert PD to ZD using SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vidyakonda

New User


Joined: 25 Jan 2006
Posts: 8

PostPosted: Fri May 23, 2008 2:24 pm    Post subject: Convert PD to ZD using SYNCSORT
Reply with quote

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

gabriel.ryoga

New User


Joined: 07 Jun 2007
Posts: 31
Location: Spain

PostPosted: Fri May 23, 2008 2:41 pm    Post subject:
Reply with quote

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

New User


Joined: 25 Jan 2006
Posts: 8

PostPosted: Fri May 23, 2008 3:01 pm    Post subject: Reply to: Convert PD to ZD using SORT or SYNCSORT
Reply with quote

Wow..thanks.its worked fine.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us