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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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