BookmarkSubscribeRSS Feed
SatishPala
Calcite | Level 5

Hi All,

 

Some of the user are getting the below error message when they open the existing .egp, before executing the program.

User connecting to mainframe servers, Does any one come across this error. Can you please help me.

 

18 GPATH=&sasworklocation
19 ENCODING=UTF8
_
22
76
ERROR 22-322: Syntax error, expecting one of the following: BODY, CODE, CONTENTS, CSSSTYLE, DATA, DOM, ENCODING, EVENT, FILE,
FRAME, GPATH, PAGE, PATH, STYLE, STYLESHEET, TAGSET, TRANTAB, TYPE.

ERROR 76-322: Syntax error, statement will be ignored.

20 options(rolap="on")
21 ;

 

I have checked the server encoding its 

SAS (r) Proprietary Software Release 9.4 TS1M2

Option Value Information For SAS Option ENCODING
Value: OPEN_ED-1142
Scope: SAS Session

 

 

Thanks,

Satish Pala

4 REPLIES 4
SatishPala
Calcite | Level 5

Hi All,

 

Below is the error, its under ecoding=utf8

 

18 GPATH=&sasworklocation
19 ENCODING=UTF8
                         _
                        22
                        76
ERROR 22-322: Syntax error, expecting one of the following: BODY, CODE, CONTENTS, CSSSTYLE, DATA, DOM, ENCODING, EVENT, FILE,
FRAME, GPATH, PAGE, PATH, STYLE, STYLESHEET, TAGSET, TRANTAB, TYPE.

ERROR 76-322: Syntax error, statement will be ignored.

ChrisHemedinger
Community Manager

It looks like the error is coming from the ODS wrapper code that EG is generating, but as @Kurt_Bremser said, we would expect the ENCODING= value to be quoted, like this:

 

         ODS HTML5(ID=EGHTML) FILE=EGHTML
             OPTIONS(BITMAP_MODE='INLINE')
             ENCODING='utf-8'
             STYLE=HTMLBlue
             NOGTITLE
             NOGFOOTNOTE
             GPATH=&sasworklocation;

Check the Encoding options and "additional" options in your Tools->Options->Results settings.

 

opts.jpg

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4 replies
  • 1729 views
  • 0 likes
  • 3 in conversation