data TARGET.TABLEA;
set MYLIB.TABLEA;
run;
How do I add ON_ERROR step to the above data step to overcome the below error, data is allowed and not skipped.
ERROR: Error executing COPY command: Numeric value '-specific scope position:' is not recognized File
'@~/user/SASSNBL_XYWYYVYVYMMM.dat', line 151, character 1 Row 151, column
"TABLEA"["on_error":1] If you would like to continue loading when an error is encountered, use other values
such as 'SKIP_FILE' or 'CONTINUE' for the ON_ERROR option. For more information on loading options, please run 'info
loading_data' in a SQL client.
Might consider showing the entire code plus all the messages, notes as well as errors causing that.
That code appears to reference something other than the code you show.
And possibly prior stuff where the file '@~/user/SASSNBL_XYWYYVYVYMMM.dat', is actually referenced/used.
Asking about On Error sounds a lot more like VBA than SAS.
In particular, we must also see the library definitions for TARGET and MYLIB.
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.