2015-02-04 5 views
10

एसएएस एक गैर-आरंभिकृत चर का सामना करना पड़ता है, यह होगा उत्पादन लॉग के लिए एक नोट है कि इस तरह दिखता है:मैं नोट्स त्रुटियाँ करने के लिए शुरू नहीं किए गए चर के बारे में बढ़ावा देने के कर सकते हैं

NOTE: Variable not_in_data is uninitialized. 

यह संभव एसएएस उत्पादन है कि एक के रूप में संदेश के लिए है चेतावनी या इसके बजाय एक त्रुटि?

उत्तर

15

हाँ (9.4 या बाद में):

option varinitchk = error;

डिफ़ॉल्ट मूल्य note है, अन्य संभावित मान nonote और warning हैं।

वहां अनियंत्रित सुविधा भी है जो त्रुटियों में कुछ नोट्स बदलती है। आप या तो option dsoptions = note2err का उपयोग कर विकल्प सेट कर सकते हैं; या डेटा स्टेटमेंट में / note2err जोड़कर। मैं नोट इस विकल्प त्रुटियों में परिवर्तन की एसएएस-एल पर एक सूची पाया:

19 Variable %*v is uninitialized. 
97 Missing values were generated as a result of 
98 Division by zero detected at %2q. 
99 Mathematical operations could not be performed 
108 Invalid numeric data, '%*s' , at %2q. 
109 Invalid character data, %f , at %2q. 
110 Invalid %sargument to function %b at %2q. 
139 Argument to function %*s is not a known variable name: %*v. 
140 Argument to function %*s is not a valid variable name: %*s. 
205 Invalid argument(s) to the exponential operator "**" at %2q. 
208 Invalid numeric data, %*s='%*s' , at %2q. 
209 Invalid character data, %*s=%f , at %2q. 
223 A number has become too large at %2q. %w%*s 
224 A number has become too large during the compilation phase. 
225 Division by zero detected during the compilation phase. 
242 Invalid argument(s) to the exponential operator "**". 
258 Invalid argument to function %*b at %2q. 
259 Invalid first argument to function %*b at %2q. 
260 Invalid second argument to function %*b at %2q. 
261 Invalid third argument to function %*b at %2q. 
262 Invalid fourth argument to function %*b at %2q. 
267 Argument %d to function %*b at %2q is invalid. 
356 The SUBSTR pseudo-variable function does not allow character 
424 Character values have been converted to numeric 
425 Numeric values have been converted to character 
429 A number has become too large during the compilation phase, 
430 Division by zero detected during the compilation phase, 
484 Format %*b was not found or could not be loaded. 
485 Informat %*b was not found or could not be loaded. 

Source

+0

यह महान है ... बहुत बुरा है कि वे इस पर विस्तार नहीं किया स्वत: प्रकार की तरह अन्य चीजों को कवर करने रूपांतरण। –

+4

वास्तव में एक अनियंत्रित सुविधा है जो कुछ नोट्स को त्रुटियों में बदल देती है। आप या तो 'विकल्प dsoptions = note2err;' या किसी विशेष डेटा चरण में '/ note2err' जोड़कर विकल्प सेट कर सकते हैं। यह अनियमित चर और अंतर्निहित प्रकार रूपांतरणों के लिए काम करता है। मुझे नहीं पता कि यह कौन से अन्य नोट्स बदल सकता है। Dsoptions = note2err पर – DWal

+0

+1। यह बहुत सारे बुरे नोट त्रुटियों बन जाता है। आशा है कि एक दिन वे इसे आधिकारिक बनाने के लिए दस्तावेज करेंगे। – Quentin

संबंधित मुद्दे

 संबंधित मुद्दे