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
 
Signed PD to Unsigned PD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Signed PD to Unsigned PD
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Aug 02, 2012 3:04 pm    Post subject: Reply to: Signed PD to Unsigned PD
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Aug 02, 2012 5:24 pm    Post subject: Reply to: Signed PD to Unsigned PD
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    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 SIGNED DECIMAL TO COMP-3 using cobol ... ram_vizag COBOL Programming 1 Tue Mar 01, 2016 11:32 pm
No new posts How to convert unsigned numeric to si... mftechie123 SYNCSORT 7 Thu Jan 29, 2015 4:54 pm
No new posts Issue in Comparing 2 Signed Comp Vari... elango Paulraj COBOL Programming 4 Thu Jan 08, 2015 1:55 pm
No new posts Obtaining a signed value when updatin... Shrikant Kumar DFSORT/ICETOOL 2 Wed Dec 24, 2014 11:04 pm
No new posts NUMERIC to SIGNED BINARY DATA type co... rss0213 COBOL Programming 9 Tue Apr 08, 2014 8:53 pm

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