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

Signed PD to Unsigned PD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Debasis Misra
Warnings : 1

New User


Joined: 16 Sep 2008
Posts: 72
Location: Bangalore

PostPosted: Thu Aug 02, 2012 2:51 pm
Reply with quote

Hi,

I need to join 2 files using SYNCSORT. One file is having ACCT No is SIgned PD form at and another one is having in PD format.

1st file (Signed PD):
00008
1002C

2nd File (Unsigned PD):
00008
1002F

IS there anything in SYNCSORTconvert Signed PD to Unsigned PD? Please advise.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Aug 02, 2012 3:04 pm
Reply with quote

in any language the arithmetic comparison of PD fields will be well behaved

it will consider C/F as positive and D as negative

so for the sample posted the PD comparison will provide equality

by the way, for PD fields the unsigned/signed concept does not apply/does not have any meaning
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Aug 02, 2012 5:24 pm
Reply with quote

One problem though. If Syncsort is like DFSORT in this, the JOINKEYS key is solely a BInary comparison, not arithmentic, so the bit-settings count.

Yes, you'd have to "normalise" one or the other, would be my guess. Refer to your Syncsort documentation for field types which are supported.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Numeric check on packed signed and un... COBOL Programming 4
No new posts Signed Count in Trailer SYNCSORT 7
Search our Forums:

Back to Top