Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us