Good afternoon. I need to read a fixed text file (mainframe data; length 522). This file has characters, numbers and symbols (e.g. squares/blocks). I have read in SAS (v 9.3) the same file directly from mainframe without problems (below SAS code) . FILENAME CCREP FTP " ' mainframe file name' " USER='XXXXX' PROMPT LRECL=412 RECFM=FB HOST='XXXX.XXXX.XX.XX'; This time I received a text file with 11 new variables. I have added the new variables into my SAS program, but I am encountering problems reading the text file (below SAS code). FILENAME CCREP "File location and name.txt"; Data REPORTA; INFILE CCREP LRECL=522 RECFM=FB; DATA acf800.REPORTA; INFILE CCREP; INPUT @1 GRNTYPE $EBCDIC1. @2 DISPO $EBCDIC1....; I have received the following errors and notes: -Invalid value for the RECFM option. -0 records were read from the infile CCREP several notes for: Invalid data for X variable in line 1 3-7 (for example) -Lost Card -Invalid errors for file CCREP occurred outside the printed range -Increase available buffer lines with the INFILE n=option Please, let me know if additional information is required. Thank you in advanced for the assistance.
... View more