Hi all, I am stuck with a small issue in PROC SQL. I have to fetch from a flat file & use that string in a sql query but the items in the list are strings so during the fetch i need to fetch it with quotes to use it in oracle. Any Help would be much appretiated. Thanks! CODE.txt AAA AAB AAC filename colcode "/xyz/CODE.txt";run; data col_code; infile colcode; length col_code $3.; input col_code $; run; proc sql noprint; select (trim(left(col_code))) into:collist separated by ', ' from col_code;run; %put Colleage LIST IS: &collist ; Current Output:- Colleage LIST IS: AAA, AAB, AAC Required Output:- Colleage LIST IS: 'AAA', 'AAB', 'AAC' I am using that &collist in a where condition in one sql run on oracle in later stages.!
... View more