Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us