BookmarkSubscribeRSS Feed
Karthik95
Calcite | Level 5
I have wrote a program by using DDE where I'm unable to skip rows in the excel sheet . What function I should use to skip rows
6 REPLIES 6
andreas_lds
Jade | Level 19

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.

Karthik95
Calcite | Level 5
mine is sas 9.2 version so i have no choice so, please suggest me what delimter should i use to skip rows in excel sheet while using DDE
Reeza
Super User
Skipping a line the same way you would with a text file should work, have you tried just a blank put statement? Or some other method? You can also control what cells you access directly so it should be pretty straightforward, post your code if you're having issues.
Kurt_Bremser
Super User

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.

Patrick
Opal | Level 21

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/ 

VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

put '09'x;

that will skip one line.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 6 replies
  • 2165 views
  • 0 likes
  • 6 in conversation