data temp; infile cards missover truncover; input sclurp $32000. ; cards; ajay|ku mar|2656|34 muni|carr om|455676|56 ajay|kumar|9890|78|vijay|kumar|589|90| user|flow|568 |67 run; data temp2; /*input @;*/ set temp; sclurp=cats(of sclurp ); retain sclurp ''; if not mod(countw(sclurp,'|'),4) then do; do i=1 to countw(sclurp,'|') by 4; name=input(scan(sclurp,i,'|'),$32.); user=input(scan(sclurp,i+1,'|'),$32.); no=input(scan(sclurp,i+2,'|'),8.); age=input(scan(sclurp,i+3,'|'),8.); output; end; sclurp=''; end; drop sclurp i; run; proc print; run; I am trying by this way i am not getting the output i wnat in this way i want the inital data in to a dataset as i cant give datalines as my data is huge
... View more