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

Convert PD to ZD using SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top