BookmarkSubscribeRSS Feed
PROCDATARUN
Obsidian | Level 7

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.

2 REPLIES 2
ballardw
Super User

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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