You are still using DDE? The technique is outdated for years, you should really switch to something more up to date, like libname xlsx, or ODS.
The proper tool for manipulating MS Office files is VBA. Use that.
Skipping certain observations in SAS datasets is done with WHERE conditions or a subsetting IF.
Adding to what @andreas_lds writes: You really should read below blog before writing any new SAS programs using DDE.
https://blogs.sas.com/content/sasdummy/2014/10/14/dde-is-doa/
put '09'x;
that will skip one line.
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!
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.