Use the INDSNAME.

Comments

2 comments

  • Philip Logie

    Hi Marta,

    This syntax feature is available in WPS 4.2 General Availability and later.

    With earlier versions of WPS, you'd have to name each input dataset individually in the set statement, then use the in= dataset option to create a Boolean variable on each, which you can then examine to see which dataset is being read from.

     
    Philip Logie
    Customer Support | WPS Analytics

     

    0
    Comment actions Permalink
  • Marta Padin

    Hi, Philip.

    I'm not able to apply this to my problem due to the real problem is that I have two datasets with a very long name (exceded 32 characters), like very_long_dataset_name_more_32_char_1 and very_long_dataset_name_more_32_char_2. Because of this, I am only able to import then using:
    data bla;
    set libname.very_long_dataset_name:;
    run;

    And I want to differenciate between the data coming from one dataset or from the other, and as I am using ":" not able to use the in option and I wanted to use indsname.

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.