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

Operations like (Addition or Subtraction) using SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bamohan

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Thu Mar 12, 2009 3:24 pm
Reply with quote

My File1 have i/p as

I/P file:
0001
0103
0204


My o/p file should have the values adding the position 1 to 2 + 3 to 4 and check if the total is greater that 3 to 4. If it si greater then write it to o/p file 1. If it is not greater then write it into o/p file2

O/P file1
04
06

O/P file2
01

Please tell me If I can do this using sort ?
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: Thu Mar 12, 2009 7:17 pm
Reply with quote

Hello,

Suggest you provide more examples of the input/output data that represent a more complete set of possible conditions.

If pos 1-2 are non-zero, will the sum 1-2 + 3-4 not always be greater than 3-4? Is there some reason that testing for zero in 1-2 will not work for this?

Possibly, there is something i misunderstand icon_confused.gif
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 Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top