Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO PRINT THE DATA FILE DESCRIPTION 1

Status
Not open for further replies.

Kayo

Programmer
Aug 13, 2001
28
US
1. I ACCESS A FLAT FILE ON THE MAINFRAME USING SAS VER 6.
RECENTLY, THE FLAT FILE'S VARIABLE NAMES AND FORMATS WERE
CHANGED AND GETTING A COPY OF THE NEW DATA FILE DESCRIPTION (FILE RECORD LAYOUT) IS NOT EASY.

2. IS THERE A WAY TO PROGRAM FOR THE DATA FILE DESCRIPTION USING SAS? I NEED TO SEE VARIABLE NAME, LENGTH ETC.

V/R,

Analyst
 
You can use PROC CONTENTS to view the variable names and length of all the variables once your data are in SAS.
 
1. Sorry for taking so long to get back w/you on this. But
thanks, it worked.

V/r,
 
PROC CONTENT may work best but another option would be proc sql.

libname mylib 'xxxxxxx';

proc sql;
describe table mylib.<yourdataset>;
Run;

--------

NOTE: output will be in .log file NOT .lst file.

Just another option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top