I'm using the X command in a loop to copy 4 files from one location to another. I'm using the XNOWAIT option. The first loop iterates as expected, but a syntax error is generated for the second, indicating that the X command is a syntax error. I suspect that's because it's not finished copying the file when the second iteration begins. How would I be able to get it to pause and wait for a while before beginning the next iteration of the loop?
Error=> Post the log with the code and the error message. Otherwise we're pretty much having to guess what you did.
Post the log into a code box opened with the forums {I} icon to preserve formatting of the error message.
Error ==> "Post the log into a code box opened with the forums {I} icon to preserve formatting of the error message."
First question: What's a "code box"?
At the top of the message window on this forum is block of icons. The {I} opens a code box.
Thanks I found the code box. I also found the solution to my question. It didn't have to do with the X command, but rather with another section of my code.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.