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
 
Need a SORT to compare the signed bits

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Tue Jun 02, 2009 12:25 pm    Post subject: Need a SORT to compare the signed bits
Reply with quote

I have an input file of record length of 133. I need to compare the amounts in the FIELD-A-VARIANCE and FIELD-B-VARIANCE.

The amounts are right justified with opposite signs and are variable.

Will this be possible by a SORT?

Please see the attachment for details of the input file.
Attachment deleted - data posted below.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 02, 2009 7:10 pm    Post subject:
Reply with quote

Hello,

Please repost your data using copy/paste and the "Code" tag. Use Preview to see your post as the forum will see it and when you have it the way you want, Submit.

Include a bit more sample data and show what you want as output from the sample data.
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Wed Jun 03, 2009 2:41 pm    Post subject:
Reply with quote

Hi,

My INPUT file will have an record lenght of 133. it will have the amounts after 104th position, amounts are right justified and will be same.

Code:

________________________ ________________________ ___________________
                  $0.00                    $0.00             $210.10
                  $0.00            $1,681,756.20             $210.10-


I need to check whether the amounts are eual in number (different in sign) or not.

as an example i need to check whether the amount $210.00 is same with different sign.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jun 03, 2009 7:25 pm    Post subject:
Reply with quote

Hello,

Please post more complete data - unless the process will only ever have 2 lines of input.
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

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