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

Comparing Two PDS????


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hisabarish

New User


Joined: 19 Jul 2005
Posts: 4
Location: Bangalore

PostPosted: Fri Sep 02, 2005 4:39 pm
Reply with quote

I have two PDS like old.pds and new.pds. I want to compare(line by line) to those pds members and the output of the line comparison would be loaded into separate pds.(like SUPERC) Can any one let me know the solution please.

I written a jcl for comparing 2 pds ie., like SUPERCE comparison, , the problem is here we will enter the each member name in to that jcl . yeah that is not automated. My teammate told REXX have these provision , I don?t know REXX. Pls. help my request.
Back to top
View user's profile Send private message
mikeym

New User


Joined: 18 Aug 2005
Posts: 7

PostPosted: Sun Sep 04, 2005 5:51 pm
Reply with quote

Hi,

SUPERCE will work without the need write the list of members. You can use * if you're working online in ISPF (3.13), or if you're using a job, run SUPERC with the following parm PARM=(DELTAL,LINECMP,'','')

Good luck
Back to top
View user's profile Send private message
hisabarish

New User


Joined: 19 Jul 2005
Posts: 4
Location: Bangalore

PostPosted: Mon Sep 05, 2005 6:30 pm
Reply with quote

Thankx for your answer

But my requirement is....

I will give only 2 PDS names? it will be compare(line by line) to the corresponding members in the PDS and the output will be dump to the other PDS. ie., . R0001Z.LNT. REPORTS.SUPERCE

This my proc.
PROC.

//SUPERC EXEC PGM=ISRSUPC,
// PARM=(DELTAL,LINECMP,
// 'COBOL',
// '')
//NEWDD DD DSN=R0001Z.LNT.&DSNEW..&PROCGRP(&DS),
// DISP=SHR
//OLDDD DD DSN=R0001Z.LNT.&DSOLD..&PROCGRP(&DS),
// DISP=SHR
//OUTDD DD DSN=R0001Z.LNT.REPORTS.SUPERCE(&DS),
// DISP=(MOD,CATLG),SPACE=(TRK,(30,20,13),RLSE)
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//


This is my Main Program.
//R0001ZS JOB (1019,XXXX,1),'SABARI',CLASS=L,
// MSGCLASS=X,NOTIFY=&SYSUID,MSGLEVEL=(1,1)
/*JOBPARM R=C739
//*
// JCLLIB ORDER=(R0001Z.CHK.COMPRE.PDS)
//STEP01 EXEC SUPERCEP,
// DSNEW=XYZNEW,DSOLD=XYZOLD,PROCGRP=C2BNNN,DS=C910001
//STEP02 EXEC SUPERCEP,
// DSNEW=XYZNEW,DSOLD=XYZOLD,PROCGRP=C2BNNN,DS=DPATEST1
//STEP03 EXEC SUPERCEP,
// DSNEW=XYZNEW,DSOLD=XYZOLD,PROCGRP=C2BNNN,DS=E070103
//STEP04 EXEC SUPERCEP,
// DSNEW=XYZNEW,DSOLD=XYZOLD,PROCGRP=C2BNNN,DS=HR00957


In that main program, each and every time, I am typing the members name and the processor group name. Instead of this manual work, I want give only the PDS names.
I want to make the above program as automated.

Pls. any body help me... I Struggled lot for last three days.
Back to top
View user's profile Send private message
mikeym

New User


Joined: 18 Aug 2005
Posts: 7

PostPosted: Wed Sep 07, 2005 6:18 pm
Reply with quote

Is your problem that the output of SUPERCE is a line by line comparison of corrisponding members with the output going into only ONE PDS FILE?

If that is the only problem, i can give you a little rexx i have that reads the compare output and seperates it into a pds by member name...
Back to top
View user's profile Send private message
mikeym

New User


Joined: 18 Aug 2005
Posts: 7

PostPosted: Wed Sep 07, 2005 6:26 pm
Reply with quote

Maybe i wasn't clear before. you can run SUPERC and only give the PDS names (one old and one new). It will compare all members with the same names, but the output will go into one sequential file with the comparisons of all the members in it. eg:
//SUPERC EXEC PGM=ISRSUPC,
// PARM=(DELTAL,LINECMP,
// '',
// '')
//NEWDD DD DSN=MYUSER.JOBS,
// DISP=SHR
//OLDDD DD DSN=MYUSER.JOBS.NEW,
// DISP=SHR
//OUTDD DD DSN=MYUSER.JOBS.COMPARE.OUT, <---sequential file
// DISP=SHR

You can run an additional step on the file MYUSER.JOBS.COMPARE.OUT which seperates the comparisons into a pds by member name.
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 -> JCL & VSAM

 


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