MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

comparing two files using SUPERC.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Apr 22, 2008 9:38 am    Post subject: comparing two files using SUPERC. Reply with quote

Hi,

I have two files, one with LRECL of 108 and another with LRECL of 80.

A six digit number starts in 14th column in file A and the same six digit number starts in 5th column in file B. The file A 1000 records and the file B has 1046 records. Now, we need to find out those 46 records to be deleted.

I used SUPERC but no luck....... Rolling Eyes

Code:

 ****** *****************
 000001 CMPCOLMN 14:6     
 000002 CMPCOLMO 5:6   
 ****** *****************


I got the below shown error: Confused

Code:

THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:
   CMPCOLMN 14:6                                                     
   CMPCOLMO 5:6                                                     
ISRS031W AN INVALID START COLUMN VALUE WAS SPECIFIED.               


Would you please suggest me the correct code either SUPERC way or FILE-AID way?

I would be very grateful if you could give me both.

Thank you very much. Very Happy
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Apr 22, 2008 9:47 am    Post subject: Reply with quote

CMPCOLMN is Starting, ending

not Starting, length
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Apr 22, 2008 10:39 am    Post subject: Thank you very much. Reply with quote

Hi,

It worked now.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Apr 22, 2008 10:41 am    Post subject: Reply with quote

Would anybody please suggest File-Aid way of achieving the same? bonk

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group