View previous topic :: View next topic
|
Author |
Message |
ekalavya
New User
Joined: 27 Oct 2006 Posts: 1
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
SUPERC sets its return code based on its findings.
O. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
|