Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Arithmetic operations in SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
Aravind_mf

New User


Joined: 06 Mar 2009
Posts: 9
Location: chennai

PostPosted: Wed Jul 01, 2009 2:14 pm    Post subject: Arithmetic operations in SYNCSORT
Reply with quote

Hi,
I have two files with 1 record in each file. The file is in the format CCYYMMDDHHMMSS. Starting position 1 and End position 14 in both files.

Ex: File1 contains 20090621152250 and file 2 contains 20090621112143

my requirement is to see if the time difference (time part in File1 - time part File2)is GE to 4 hours. ( i.e 152250 - 112143 should be >= 4 hours).
I would like to get a RC16 if the condition fails else RC0.

My shop will support only SYNCSORT. Please help me in acheiving this requirement.
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 13553
Location: 221 B Baker St

PostPosted: Wed Jul 01, 2009 7:41 pm    Post subject:
Reply with quote

Hello,

Suggest you proceed with program code.

Sort products are not designed to do date/time arithmetic.
Back to top
View user's profile Send private message
Aravind_mf

New User


Joined: 06 Mar 2009
Posts: 9
Location: chennai

PostPosted: Tue Jul 07, 2009 5:47 pm    Post subject:
Reply with quote

Thanks dick.

I completed the above requirement in a COBOL program
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 13553
Location: 221 B Baker St

PostPosted: Tue Jul 07, 2009 7:19 pm    Post subject: Reply to: Arithmetic operations in SYNCSORT
Reply with quote

Good to hear it is working - thanks for the update icon_smile.gif

d
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1