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

MATCH in FOCUS programming


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anindyamondal

New User


Joined: 04 Apr 2007
Posts: 3
Location: Kolkata

PostPosted: Wed Apr 04, 2007 1:24 pm
Reply with quote

Hi,
We generally use MATCH FILE filename--> format for matching two files and the results are saved in a HOLD file. But if I am reading data from a flat file which has no mfd, using FIXFORM and then uses MATCH variable name format....what does it mean? with whom the matching is taking place...Please have a look at the code

FIXFORM X49 PCODE/6 PCLINE/1 RPCODE/6 X13
MATCH ECODE
ON MATCH TYPE ON PCETABLE
"<1 <PCODE <7 <PCLINE <8 <RPCODE <14 <ECODE"
ON NOMATCH REJECT
-*ON MATCH CONTINUE
-*MATCH PCODE PCLINE RPCODE
-*ON MATCH TYPE "DUPLICATE ECODE <TRAN <ECODE <PCODE <PCLINE <RPCODE"

DATA ON ENTW
END
Back to top
View user's profile Send private message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Wed Apr 04, 2007 3:56 pm
Reply with quote

anindyamondal,

I feel that you have missed a MODIFY command before FIXFORM.

Code:
FIXFORM X49 PCODE/6 PCLINE/1 RPCODE/6 X13


MATCH command over here is different from MATCH FILE which as you know is used for matching of two files. The MATCH here could be a part of MODIFY.

Please let us know if the given code is after a MODIFY command.
Back to top
View user's profile Send private message
paray2x

New User


Joined: 28 Dec 2005
Posts: 21

PostPosted: Fri Apr 06, 2007 7:57 pm
Reply with quote

Hi,

Dinesh is correct. There should be a modify file command.

This code explains the layout of your transaction file. You don't need an MFD for this method.

FIXFORM X49 PCODE/6 PCLINE/1 RPCODE/6 X13

Here X indicates spaces/un used space and others are fieldname/length.

Corrections welcome...
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Cobol-DB2 Programming - Better perfor... DB2 1
No new posts JOINKEYS to match two input files on ... DFSORT/ICETOOL 3
No new posts Learning about Systems Assembler prog... PL/I & Assembler 5
No new posts CICS file processing using applicatio... CICS 3
No new posts Print next line strings when a condit... DFSORT/ICETOOL 9
Search our Forums:

Back to Top