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:
Spot the problem with this statement - semicolon not colon required at the end.
ODS CSV CLOSE:
Note the horizontal position of the ERROR indicator:
27 ods csv close:
_
22
200
It points exactly to the problematic character.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.