BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I am trying to learn ODS csv 

I am getting an error

 

3603 ODS CSV CLOSE:
-
22
200
ERROR 22-322: Syntax error, expecting one of the following: ;, ANCHOR, ARCHIVE, ATTRIBUTES, AUTHOR, BASE, BODY, BOX_SIZING,
CHARSET, CLOSE, CODE, CODEBASE, COLUMNS, CONTENTS, CSSSTYLE, DATA, DOM, DPI, ENCODING, EVENT, FILE, FRAME, GFOOTNOTE,
GPATH, GTITLE, HEADTEXT, IMAGE_DPI, METATEXT, NEWFILE, NOGFOOTNOTE, NOGTITLE, OPERATOR, OPTIONS, PACKAGE, PAGE,
PARAMETERS, PATH, RECORD_SEPARATOR, SGE, STARTPAGE, STYLE, STYLESHEET, TAGSET, TEXT, TRANTAB, TYPE, UNIFORM.
ERROR 200-322: The symbol is not recognized and will be ignored.

 

data newclass;
set sashelp.class;
label name='First Name'
           sex='Gender'
           Age='Age of Person'
           Height='Height of Person'
           Weight='Weight of Person';
run;
ODS CSV FILE="path/newclass.csv";
proc print data=newclass label noobs;
run;
ODS CSV CLOSE:

 
2 REPLIES 2
SASKiwi
PROC Star

Spot the problem with this statement - semicolon not colon required at the end.

ODS CSV CLOSE:

 

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2038 views
  • 1 like
  • 3 in conversation