This thread is similar to the other thread I started, "Am I being stupid or what?" I have an include file that I want to pass paramaters to if the condition is meet. The problem I'm having, seems to be with the preprocessor evaluating both the include lines.
if infile = "F"
then do:
{lib/rpt-open.i &noheader=1 &page-size=0}.
end.
else
do:
{lib/rpt-open.i}.
end.
I've looked at the rpt-open.i file and it has a lot of preprocessor statements, i.e.
&IF ....
&THEN
....
&ENDIF
I believe this is what is causing me problems, because I'm referencing the same include file, only one has arguments passed in and the other doesn't. Individually, each line works, but put in to a conditional statement and I get the following error: Colon followed by white space terminates a statement.