Thanks Gary for your quick response. I could not access the snipped common.m4 file which you had sent.
I could finally get rid of "can't open file" error message. Now getting below error message. m4:ZF01.m4:common.m4:17 bad macro name define([[ <TABLE> <TR><TH>Stationery:</TH><TD></TD></TR> <TR><TH>Inserts:</TH><TD></TD></TR> <TR><TH>Letter owner:</TH><TD></TD></TR> <TR><TH>Designer:</TH><TD></TD></TR> <TR><TH>Last modified:</TH><TD></TD></TR> <TR><TH>Version:</TH><TD></TD></TR> <TR><TH>Manual(M) or Automatic(A):</TH><TD></TD></TR> <TR><TH>Postage class:</TH><TD></TD></TR> </TABLE> ]][[ <TABLE> <TR><TH>Stationery:</TH><TD>$1</TD></TR> <TR><TH>Inserts:</TH><TD>$2</TD></TR> <TR><TH>Letter owner:</TH><TD>$3</TD></TR> <TR><TH>Designer:</TH><TD>$4</TD></TR> <TR><TH>Last modified:</TH><TD>$5</TD></TR> <TR><TH>Version:</TH><TD>$6</TD></TR> <TR><TH>Manual(M) or Automatic(A):</TH><TD>$7</TD></TR> <TR><TH>Postage class:</TH><TD>$8</TD></TR> </TABLE> ]]) define([[_AX3101P_HEADER]][[ <DIV CLASS="header"><TABLE> <TR> <TD CLASS="left">Your account number<BR><SPAN CLASS="bal">ACC_DISTRICT_ID</SPAN> <SPAN CLASS="fixed">accountNumber</SPAN><BR><BR>Customer reference number<BR><SPAN CLASS="fixed">owningCustomerNode->id</SPAN><BR><BR>Date<BR><SPAN CLASS="bal">LETTDTCH</SPAN> </TD> <TD> <SPAN CLASS="fixed">addressName</SPAN><BR> <SPAN CLASS="fixed">address1</SPAN><BR> <SPAN CLASS="fixed">address2</SPAN><BR> <SPAN CLASS="fixed">address3</SPAN><BR> <SPAN CLASS="fixed">address4</SPAN><BR> <SPAN CLASS="fixed">address5</SPAN> </TD> </TR> </TABLE></DIV>]]) Stationery mismatch in letter ZF01. Any idea why am I getting stationary mismatch error? Let me know if you need any more information. Regards, Pratibha -----Original Message----- From: Gary V.Vaughan [mailto:[EMAIL PROTECTED] Sent: 29 June 2007 21:35 To: Pratibha Chelekar Cc: [email protected] Subject: Re: m4: Unable to include file --urgent help required On Jun 29, 2007, at 12:10 PM, Pratibha Chelekar wrote: > Hi All, Hi Pratibha, > I have created a file common.m4. File contents are provided below > > [[well formed common.m4 snipped]] > > I have included this file in ZF01.m4 file using below command > > include (common.m4) ^ ^ For the include macro to see the parameter you're trying to pass it, you can't put a space between the macro name and the opening paren. > Both common.m4 and ZF01.m4 are present in the same directory. Later > on I added quotes to the common.m4 -- > include ('common.m4') > > And executed the command, now I am getting below different error > message > > m4:ZF01.m4:81 can't open file > > include('common.m4') But you changed the quotes to [[ and ]], so now m4 is trying to find a file with apostrophe symbols in its name. HTH, Gary -- ())_. Email me: [EMAIL PROTECTED] ( '/ Read my blog: http://blog.azazil.net / )= ...and my book: http://sources.redhat.com/autobook `(_~)_ Join my AGLOCO Network: http://www.agloco.com/r/BBBS7912 ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================ _______________________________________________ M4-discuss mailing list [email protected] http://lists.gnu.org/mailman/listinfo/m4-discuss
