_INFILE_ is a variable. So is limited by the same rules as any other variable.
When posting code or log entries copied from your editor or SAS log it works best on the forum to open a code box using either the {I} or "running man" icon at the top of the message window. That will prevent the forum software from reformatting text. So you get something like:
DATA TOC1 ;
INFILE RECIN LRECL = 1000000;
LENGTH UNQ_KEY $18. RETVER $20.;
INPUT @(INDEX(_INFILE_,'')+17) UNQ_KEY $CHAR18.
@(INDEX(_INFILE_,'Version=')+15) RETVER $CHAR20. ;
IF FIND(RETVER, '"') > 0 THEN RETVER=SUBSTR(RETVER,1,(FIND(RETVER,'"')-1));
NUM_DOCS=COUNT(_INFILE_,' documentId=') ;
TEST_LENGTH= LENGTH(_INFILE_);
RUN;
(If that is close to what your code looked like in the editor).
The two code boxes do things slightly differently. The {} is pretty much plain text while the "running man" will attempt to use some syntax highlighting rules.
... View more