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:

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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 lock in 2025 pricing—just $495!

Register now

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
  • 2044 views
  • 1 like
  • 3 in conversation