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

About comparing two datases


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Thu Sep 23, 2004 7:59 pm
Reply with quote

Hai

I need program to compare two datasets(includes all columns) if any two datasets matches write to another dataset.

please try to send solution to my problem

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

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Fri Sep 24, 2004 7:12 am
Reply with quote

I don't understand what do you want to mean? What do you want to write to a third dataset?

You can compare two datasets using ISPF option 3.13, with Fileaid option 10 from primary menu, using COMPAREX in batch mode and some other utilities also.

Regards,
Sandip.
Back to top
View user's profile Send private message
sudheerkumar_k

New User


Joined: 08 Sep 2004
Posts: 10
Location: Bangalore

PostPosted: Tue Nov 02, 2004 12:37 pm
Reply with quote

Ashwin Reddy,

As sandip said 1. You can use File Aid Option 10
2. SuperCE Utility in ISPF at 3.13

Otherwise make use of this program it works in our shop check in our shop.

//HTDAESKB JOB (WATSBAR,C8510A08,EB10B051),'CHANDANAM',CLASS=6,
// MSGCLASS=X,USER=HTDAESK,NOTIFY=HTDAESK
//**********************************************************************
//* COMPARING TWO DATASETS FOR A SPECIFIED COLUMNS.
//* EX: THE BELOW JCL COMPARES TWO DATASETS FOR THE COLUMNS 7-72 AND
//* WRITES THE O/P TO SYSOUT. EVEN A NEW FILE CAN BE CREATED IF NOT
//* DIRECTED TO SYSOUT
//**********************************************************************
//SUPERC EXEC PGM=ISRSUPC, *
// PARM=(CHNGL,LINECMP,
// '',
// '')
//NEWDD DD DSN=HTDAESK.CCMS.JCLS(TEST1),DISP=SHR
//OLDDD DD DSN=HTDAESK.CCMS.JCLS(TEST2),DISP=SHR
//OUTDD DD SYSOUT=A
//
//*OUTDD DD DISP=(NEW,CATLG,DELETE),
//* MGMTCLAS=QTRLY,
//* DSN=HTDAESK.CCMS.COMPARE1,
//* DCB=(SYS2.DSCB,LRECL=13,RECFM=FB,BLKSIZE=0),
//* UNIT=DISK,
//* SPACE=(CYL,(80,30),RLSE)
//*
//SYSIN DD *
CMPCOLM 7:19
/*

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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Comparing Header and Trailer. DFSORT/ICETOOL 7
No new posts Comparing Signed Packed decimal and p... SYNCSORT 2
No new posts Comparing Comp-3 fields with greater ... DFSORT/ICETOOL 11
No new posts Comparing inside same file DFSORT/ICETOOL 2
No new posts Comparing two sequential files COBOL Programming 14
Search our Forums:

Back to Top