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: 743
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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am


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