Skip to content

Commit ea4e222

Browse files
authored
Merge branch 'main' into main
Signed-off-by: Stacey Syphus <[email protected]>
2 parents ff90d7a + d270d18 commit ea4e222

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
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

0 commit comments

Comments
 (0)