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

To do some arithmetic operations in SORT step


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

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Thu Jul 12, 2007 3:45 am
Reply with quote

Is it possible to do some arithmetic operations in SORT step?

E.g

I have input file with colums Amount1 Amount2

Can I get an output file like "Amount1;Amount2; (Amount1-Amount2)"

Amount1 - Amount2 --> is this possible?

Please advise!

Thanks,
Mani
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jul 12, 2007 3:54 am
Reply with quote

mak_tcs wrote:
Is it possible to do some arithmetic operations in SORT step?i
Yes, have you looked at the manual?
Arithimetic statements are available for both inrec and outrec....

Do you need more "pointers"?
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Thu Jul 12, 2007 3:57 am
Reply with quote

Thanks Williams!

I hope I got what i need from your earlier post ibmmainframes.com/viewtopic.php?t=17183&highlight=arithmetic

Thanks for your help!
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 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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top