Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us