Hi, SAS version: 9.4 I would like to know whether it is possible to select specific columns from a pipe delimited text file and insert them into a SAS dataset. I have a huge file (several gigabytes) with 100 columns (= variables from SAS point of view), but I need to read only specific columns from that file. For example: the 10th, 23rd, 42th, 51th and 75th columns from the file. I believe that similar questions have already been asked but the answers I found while I was googling, were mostly for column aligned data with fixed lengths and as a result fixed start and end positions for each column, that is, using the @ operator with appropriate column number as the start reading position, followed by appropriate offset numbers from that point, to continue reading by skiping the unwanted columns. But my problem is different in a sense that there is no assumption on a fixed equal length per column (apart from the max possible length) and it is the delimiter "|" which separates the data and it is the sole criterion that allows to distinguish columns one from another. Therefore, I would like to ask whether it is possible to do this and select specific (varying size) columns from a pipe delimited text file and insert them into SAS. Thanks in advance,
... View more