Hi, I am reading few values from a input dataset, using SAS in mainframes. And while writing to the output dataset, I need to add titles/header/labels(not sure what we is the exact syntax in sas) for those fields. For example: Input file layout: LA ,80002,1942,1040 LA ,80002,1842,1940 LA ,80004,1713,1510 output file should be as follows: File should have first record as description/title/label for the upcoming records: Kinda of title for all those fields AREA, LOC , CC ,DEPT LA ,80002,1942,1040 LA ,80002,1842,1940 LA ,80004,1713,1510 I cant try proc print, because I am writing all records to a output dataset and not in sas log. Also if i use proc print data=infile1 label; label area='AREA1'; run; I am getting spaces between all those Fields. Please help.
... View more