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

Compare two files and set return code


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ekalavya

New User


Joined: 27 Oct 2006
Posts: 1

PostPosted: Tue Nov 07, 2006 12:52 pm
Reply with quote

I have two files, File1 and File2. Each contain one record each.
I have to compare record from File1 and File2 using JCL, and If File1 record is greater that File2 the JCL RETURN code should be 4 else it should be 0.

Description:

File1:
199999999

File2:
299999999

Compare File1 and File2

If File1 > File2
Then
set RETURN-CODE to 4
Else
set RETURN-CODE to 0
End-if

Please help me how to do this using JCL(DFSORT or ICEMAN)

Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 07, 2006 3:21 pm
Reply with quote

SUPERC sets its return code based on its findings.

O.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 5:10 pm
Reply with quote

Hi !

And here's a little JCL example using SUPERC

//SUPERC EXEC PGM=ISRSUPC,
// PARM=(LONGL,LINECMP,
// 'NOPRTCC',
// '')
//OLDDD DD DISP=SHR,DSN=HUGO
//NEWDD DD DISP=SHR,DSN=PETRA
//OUTDD DD SYSOUT=*

Regards, UmeySan
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top