Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
Should there be a comma at end of the lines before the OUTREC statements? and should there be a comma at the end of the line before the OUTFIL FILES=02 line? Are the parentheses correctly matched?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Amb,
Your syntax is a bit of a mess. You have TWO OUTREC statements so the second is a duplicate. You have a comma at the end of the first OUTREC statement so it continues into the OUTFIL FILES=02 statement. I don't know if you were trying to use IFTHEN clauses with each OUTFIL statement or actually trying to use an OUTREC statement or what, so it's difficult to tell you how to fix it.
The OUTREC statement is actually processed before the OUTFIL statement but you can only have one. You can use IFTHEN clauses with each OUTFIL statement.
Removing the extra comma, your control statements would actually be processed like this so the second OUTREC statement would be ignored as a duplicate: