As part of my code I have the following:
do z=1 to &x;
do y=1 to 8084;
good&k.{z,y}=0;
end;
end;
&x is usually a number like 300:
However as a result of this code, I get the following appearing in my log:
Consequently, I cannot see anything else as the values of the array elements take up the entire log. Is there any way to suppress the output displaying array element values?
I have tried 'Options nosource nonotes' but it unfortunately does not suppress the above array information
Seeing the complete code and the log showing what happens before would be really helpful to help you. It seems as if there are warnings or notes that should be taken care of to avoid the array information from appearing in the log.
Seeing the complete code and the log showing what happens before would be really helpful to help you. It seems as if there are warnings or notes that should be taken care of to avoid the array information from appearing in the log.
I have attached the code and log to this reply
Using PROC IMPORT to read in text files can lead to a lot of problems since it has to GUESS how to define the variables.
What is the purpose of the MACRO used in that program?
It is during the code generated by the MACRO that you are getting the data errors that are triggering the dumping of the data values to the log.
If you turn on the MPRINT option then at least you will see in the log the SAS statements that the macro generated.
You appear to be trying to use a character variables like TERM, ROLE and ATTRIBUTE as they are numbers.
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column). 852:30 852:51 852:72 852:181 852:203 852:225 NOTE: Variable _TERM_ is uninitialized. NOTE: Variable x is uninitialized. WARNING: The variable hello in the DROP, KEEP, or RENAME list has never been referenced. NOTE: Invalid numeric data, Term='george' , at line 852 column 41. NOTE: Invalid numeric data, Role='PN' , at line 852 column 62. NOTE: Invalid numeric data, Attribute='Alpha' , at line 852 column 83. NOTE: Invalid numeric data, Term1='cal' , at line 852 column 192. NOTE: Invalid numeric data, Role1='N' , at line 852 column 214. NOTE: Invalid numeric data, Attribute1='Alpha' , at line 852 column 236.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.