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

Need a SORT to compare the signed bits


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Jun 02, 2009 7:10 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Jun 03, 2009 7:25 pm
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 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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top