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
 
Comparing Signed Packed decimal and packed decimal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Virendra Shambharkar

New User


Joined: 26 Aug 2015
Posts: 55
Location: India

PostPosted: Wed Nov 14, 2018 9:37 am    Post subject: Comparing Signed Packed decimal and packed decimal
Reply with quote

Hi,

We are trying to compare same field having same values across 2 different files as follows

1. File 1- defined as 4/P ( COMP-3 PIC 9(7))
2. File 2 - defined as 4/PS ( COMP-3 PIC S9(7))

but we are getting incorrect results while comparing. Can you please advise what should be a correct sort card for comparing this.

Thanks,
Virendra
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8744
Location: Welsh Wales

PostPosted: Wed Nov 14, 2018 12:32 pm    Post subject:
Reply with quote

Unfortunately, psychic day was Monday this week .............. so

Define "incorrect results"

What sort card have YOU tried, please post your code, the expected results and the actual results.
And ... Don't forget to use the code tags

Don't forget any of the other base information needed, the release level of your sort product, the RECFM & LRECL of your input / output datasets, field positions, lengths and data formats.
What exactly should happen for a field match and what happens for a mismatch.

Without any useful information, or in this case - any information - how can you possibly expect any useful information back icon_evil.gif
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 388
Location: Maryland

PostPosted: Thu Nov 15, 2018 6:46 pm    Post subject:
Reply with quote

1) COMP-3 in IBM COBOL is always compiled to machine-supported signed decimal packed.
2) if you need any meaninful advice, then please, provide any meaningful info: what exactly you tried to do, and what exactly is incorrect??
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RPG II Problem with unsigned Packed d... Andi1982 All Other Mainframe Topics 6 Tue Sep 11, 2018 6:11 pm
No new posts Comparing Comp-3 fields with greater ... Prateeksichem1 DFSORT/ICETOOL 11 Fri Jul 13, 2018 8:45 am
No new posts Comparing inside same file vickey_dw DFSORT/ICETOOL 2 Tue Jul 10, 2018 9:51 pm
No new posts How can I convert charactor to fixed ... liying DFSORT/ICETOOL 7 Tue May 22, 2018 3:35 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm

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