For one of the research studies I work on, we are meant to upload data to the National Data Archive (NDA). To this end, in SAS 9.4 we are trying to create several CSV files - one for each of the survey instruments used in our interviews. NDA uploads require a row at the top of the file with information for their system to read in (in this case, A1="ndar_subject" and B1=1), the second row is the variable names, and the rest is the data. One solution I hoped for would be to print data labels AND variable names, where we assign variable1="ndar_subject" and variable2="1" for labels and leave the rest blank. We tried using a title statement in conjunction with ODS CSVALL, but that only provided us with the cell A1 requirement. Another thought would be to somehow insert a row into the CSV with A1="ndar_subject" and B1=1 and then continue with a PROC PRINT. Any solution suggestions are welcome!
... View more