Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MATCH in FOCUS programming

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: MATCH in FOCUS programming
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Event-driven programming (BTS) VS (ST... Rohit Umarjikar CICS 2 Sat Jun 11, 2016 2:05 am
No new posts DFSORT to match two files and write John F Dutcher DFSORT/ICETOOL 6 Thu May 12, 2016 5:17 pm
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm
No new posts Relatated to FOCUS program Sumeendar All Other Mainframe Topics 1 Thu Mar 10, 2016 5:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us