BookmarkSubscribeRSS Feed
PranayaG
Calcite | Level 5

2145 830 if _QSCAT="PATIENT'S ASSESSMENT OF ARTHRITIS PAIN" and upcase(_INSTANCENAME1) not in ("UNSCHEDU
LED" "WEEK 12" "WEEK 36"
2146 830 ! "WEEK 60" "WEEK 84" "WEEK 108"
2147 831 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2148 831 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2149 832 if _QSCAT="PHQ-9" and upcase(_INSTANCENAME1) not in ("UNSCHEDULED" "WEEK 24" "WEEK 72" "WEEK
120" "WEEK 52" "WEEK 96"
2150 832 ! "WEEK 140" "WEEK 152" "WEEK 164" "WEEK 176" "WEEK 188" "WEEK 192" "EARLY TERMINATION") then de
lete;
2151 833 if _QSCAT="PHYSICIAN'S GLOBAL ASSESSMENT OF PSORIASIS (PGAP)" and upcase(_INSTANCENAME1) not in
("WEEK 12" "WEEK 36"
2152 833 ! "WEEK 60" "WEEK 84" "WEEK 108"
2153 834 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2154 834 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2155 WARNING: Truncated record.
2156 835 if _QSCAT="PSORIATIC ARTHRITIS IMPACT OF DISEASE-12 (PSAID-12)" and upcase(_INSTANCENAME1) not
in ("UNSCHEDULED" "WEEK 24"
2157 ____________
2158 49
2159 835 ! "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 164" "WEEK 176" "WEEK
188" "WEEK 192" "EARLY
2160 835 ! TERMINATION" "
2161 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2162 a quoted string and the succeeding identifier is recommended.
2163
2164 836 if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK 1
2" "WEEK 36" "WEEK 60"
2165 836 ! "WEEK 84" "WEEK 108"
2166 837 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2167 837 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2168 WARNING: The quoted string currently being processed has become more than 262 bytes long. You might have
unbalanced quotation marks.
2169 836 if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK 1
2" "WEEK 36" "WEEK 60"
2170 _____________________________________________________________________________
__________________________
2171 49
2172 836 ! "WEEK 84" "WEEK 108"
Page 6 of 25
Return to Summary (By Log)
Logcheck Performed On 2023-06-30 15:47 UTC [Executed by Pranaya Ghangale]
Text Found in Scan
Log File: /opt/zfs002/prd/ucb243537/stats/listings/prog/offline/LISVEN07.log
Line Number Text from Log
2173 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2174 a quoted string and the succeeding identifier is recommended.
2175
2176 836 if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK 1
2" "WEEK 36" "WEEK 60"
2177 _______
2178 22
2179 836 ! "WEEK 84" "WEEK 108"
2180 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetim
e constant,
2181 The SAS System
2182
2183 a missing value, iterator, (, ), ','.
2184
2185 836 if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK 1
2" "WEEK 36" "WEEK 60"
2186 _______
2187 76
2188 836 ! "WEEK 84" "WEEK 108"
2189 ERROR 76-322: Syntax error, statement will be ignored.
2190
2191 838 if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF PSORIATIC ARTHRITIS" and upcase(_INSTANCENAME1) not i
n ("UNSCHEDULED" "WEEK 12"
2192 __________________________________
____ ___
2193 ____
2194 ____
Page 7 of 25
Return to Summary (By Log)
Logcheck Performed On 2023-06-30 15:47 UTC [Executed by Pranaya Ghangale]
Text Found in Scan
Log File: /opt/zfs002/prd/ucb243537/stats/listings/prog/offline/LISVEN07.log
Line Number Text from Log
2204 839 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2205 ___ ____ ____ ___ ____ ____ ___ ___
___ ___ ___
2206 ____
2207 ___
2208 __________________________
2209 49 49 49 49 49 49 49 49
49 49 49
2210 49
2211 49
2212 49
2213 839 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2214 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2215 a quoted string and the succeeding identifier is recommended.
2216
2217 840 if _QSCAT="PHYSICIAN'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK
12" "WEEK 36" "WEEK 60"
2218 840 ! "WEEK 84" "WEEK 108"
2219 841 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2220 841 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2221 WARNING: The quoted string currently being processed has become more than 262 bytes long. You might have
unbalanced quotation marks.
2222 840 if _QSCAT="PHYSICIAN'S GLOBAL ASSESSMENT OF ARTHRITIS" and upcase(_INSTANCENAME1) not in ("WEEK
12" "WEEK 36" "WEEK 60"
2223 ___________________________________________________________________________
___________________________
2224 49
2225 840 ! "WEEK 84" "WEEK 108"
2226 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2227 a quoted string and the succeeding identifier is recommended.
2228 The SAS System
2229
2230
2231 842 if _QSCAT="PHYSICIAN'S GLOBAL ASSESSMENT OF PSORIATIC ARTHRITIS" and upcase(_INSTANCENAME1) not
in ("WEEK 12" "WEEK 36"
Page 8 of 25
Return to Summary (By Log)
Logcheck Performed On 2023-06-30 15:47 UTC [Executed by Pranaya Ghangale]
Text Found in Scan
Log File: /opt/zfs002/prd/ucb243537/stats/listings/prog/offline/LISVEN07.log
Line Number Text from Log
2242 843 "WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK 1
64" "WEEK 176" "WEEK 188"
2243 ___ ____ ____ ___ ____ ____ ___ ___
___ ___ ___
2244 ____
2245 ___
2246 ____________________________
2247 49 49 49 49 49 49 49 49
49 49 49
2248 49
2249 49
2250 49
2251 843 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;
2252 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2253 a quoted string and the succeeding identifier is recommended.
2254
2255 844
2256 845 /*if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF DISEASE ACTIVITY" and upcase(_INSTANCENAME1) not in
("WEEK 12" "WEEK 36"
2257 845 ! "WEEK 60" "WEEK 84" "WEEK 108" */
2258 846 /*"WEEK 132" "WEEK 24" "WEEK 72" "WEEK 120" "WEEK 52" "WEEK 96" "WEEK 140" "WEEK 152" "WEEK
164" "WEEK 176" "WEEK 188"
2259 846 ! "WEEK 192" "EARLY TERMINATION" "UNSCHEDULED") then delete;*/
2260 WARNING: The quoted string currently being processed has become more than 262 bytes long. You might have
unbalanced quotation marks.
2261 845 /*if _QSCAT="PATIENT'S GLOBAL ASSESSMENT OF DISEASE ACTIVITY" and upcase(_INSTANCENAME1) not in
("WEEK 12" "WEEK 36"
2262 ___________________________________________________________________________
________________________
2263 49
2264 845 ! "WEEK 60" "WEEK 84" "WEEK 108" */
2265 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Ins
erting white space between
2266 a quoted string and the succeeding identifier is recommended.
2267
2268 847 /*if _QSCAT="PHYSICIAN'S GLOBAL ASSESSMENT OF DISEASE ACTIVITY" and upcase(_INSTANCENAME1) not
in ("WEEK 12" "WEEK 36"
2269 _________________________________
_____ ____

2 REPLIES 2
Tom
Super User Tom
Super User

Handle the FIRST mistake before trying to fix the later ones.

2155 WARNING: Truncated record.

Sounds like the source code was truncated and that is what led to the unbalanced quotes that caused the later warning.

 

Analyze the code to see how many characters per line it has. If you lines of code are too long then rearrange the code to use shorter lines.  

 

Is this code you submitted from some interactive interface?  If so which one?  SAS/Studio? Enterprise Guide?  Plain old normal SAS Display Manager?

 

Or is this code in a file?  What file?  How did you tell SAS to run the code from the file?  Did you launch SAS from the command line?

 

NOTE: Any line longer than about 75 characters is too long for humans to read without having to swivel their heads back and forth.  That is why newspapers print using narrow columns of text.  So keep that in mind when creating your programs and you should never have truncated code lines.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 227 views
  • 0 likes
  • 3 in conversation