Skip to content

Commit b32920f

Browse files
2 parents 6d08857 + ea4e222 commit b32920f

8 files changed

+24
-8
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/************************************************************************************************
2+
PROC SQL, GET A FULLY QUALIFIED LIST OF ALL COLUMN NAMES FROM A SAS DATA SET
3+
This program will print a list of all column names from a SAS data set suitable
4+
for a SELECT col1, col2, ... clause
5+
Keywords: PROC SQL
6+
SAS Versions: SAS 9, SAS Viya
7+
Documentation: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=default&docsetId=sqlproc&docsetTarget=n0a693shdq473qn1svlwshfci9rg.htm#p134acmdl6qc9ln10ightascplv3
8+
1. The FEEDBACK will return qualified column names
9+
2. The NOEXEC will not execute the SELECT statement, but you still get the feedback
10+
3. Use an alias to get shorter names
11+
************************************************************************************************/
12+
13+
proc sql
14+
FEEDBACK /* 1 */
15+
NOEXEC /* 2 */
16+
;
17+
select *
18+
from sashelp.cars as c /* 3 */
19+
;
20+
quit;

KEYWORDS.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@ plot
3636
read data
3737
report
3838
debug
39-
remove duplicates
40-
41-
42-
43-
39+
remove duplicates
File renamed without changes.

Git Code Digit Selectors.sas renamed to USING DIGIT SELECTORS IN THE PICTURE STATEMENT.sas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ proc report data=delay nowd; /*5*/
7070
define del / format=delgx. 'NOEDIT with 99';
7171
define dx / format=delgy. '09 without NOEDIT';
7272
title 'Variations of Picture Formats';
73-
run;
73+
run;
File renamed without changes.

Git Code Invalue.sas renamed to USING THE INVALUE STATEMENT.sas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ proc print data=evals;
3838
run;
3939
proc means data=evals;
4040
run;
41-
41+

Git Code Picture.sas renamed to USING THE PICTURE STATEMENT.sas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ proc report data=sashelp.cars(obs=25) nowd;
4242
columns Make Model Type MSRP MSRP=MSRPForm MSRP=MSRPRound;
4343
define MSRPForm / format = thous. 'Formatted without rounding';
4444
define MSRPRound / format = thousr. 'Formatted with rounding';
45-
run;
45+
run;
File renamed without changes.

0 commit comments

Comments
 (0)