Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compare two files and set return code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Compare two files and set return code
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: 2360
Location: Israel

PostPosted: Tue Nov 07, 2006 3:21 pm    Post subject:
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: 755
Location: Germany

PostPosted: Tue Nov 07, 2006 5:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us