Hi:
I'm encouter an issue regarding to the long string in the user-defined format in SAS program. I believe the string is over 262 characters issue.
Here is my code and the file name is formtabc.sas
***********************************************************
LIBNAME HERE "c:\xxx\yyyy";
OPTIONS nodate ps=60 ls=80;
PROC FORMAT LIBRARY=HERE.formats;
VALUE ABC
1="Psychosis: Altered ability to function in normal activity due to severe disturbance in the perception of reality. Include hallucinations, incoherence, marked loose associations, impoverished thought content, marked illogical thinking, bizarre, disorganized, or catatonic behavior. Exclude uremia and drug causes.";
Run;
**********************************************************
The issue is that:
If I open this file in SAS interactive mode and click "submit" button and it successful create the formats.sas7bcat file for me.
If I "batch submit" by right click the file name and click "batch submit with SAS 9.1" then I have the following error:
**************************************************
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
a numeric constant, a datetime constant, a missing value, ;, LOW,
a numeric constant, a datetime constant, a missing value, ;, LOW,
a numeric constant, a datetime constant, a missing value, ;, LOW,
OTHER.
OTHER.
OTHER.
**********************************************************
I search the internet and find the solution is to put
option noquotelenmax;
in my code. but apprentaly is still not working in the batch mode.
Does anyone know how to release the long string limit in the code? and make it run in batch mode?
thank you in advnce.............
I'm encouter an issue regarding to the long string in the user-defined format in SAS program. I believe the string is over 262 characters issue.
Here is my code and the file name is formtabc.sas
***********************************************************
LIBNAME HERE "c:\xxx\yyyy";
OPTIONS nodate ps=60 ls=80;
PROC FORMAT LIBRARY=HERE.formats;
VALUE ABC
1="Psychosis: Altered ability to function in normal activity due to severe disturbance in the perception of reality. Include hallucinations, incoherence, marked loose associations, impoverished thought content, marked illogical thinking, bizarre, disorganized, or catatonic behavior. Exclude uremia and drug causes.";
Run;
**********************************************************
The issue is that:
If I open this file in SAS interactive mode and click "submit" button and it successful create the formats.sas7bcat file for me.
If I "batch submit" by right click the file name and click "batch submit with SAS 9.1" then I have the following error:
**************************************************
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
ERROR 22-322: Syntax error, expecting one of the following: a quoted string,
a numeric constant, a datetime constant, a missing value, ;, LOW,
a numeric constant, a datetime constant, a missing value, ;, LOW,
a numeric constant, a datetime constant, a missing value, ;, LOW,
OTHER.
OTHER.
OTHER.
**********************************************************
I search the internet and find the solution is to put
option noquotelenmax;
in my code. but apprentaly is still not working in the batch mode.
Does anyone know how to release the long string limit in the code? and make it run in batch mode?
thank you in advnce.............