Splitting single variable into multiple variables in SAS using SAS Arrays.

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 27

  • @ivanrybalchenko7225
    @ivanrybalchenko7225 Рік тому +1

    Brilliant solution!
    Thank you for sharing this explanation!!!

  • @9356079
    @9356079 5 років тому +1

    Very useful video and nicely explained

  • @deepakkumaar9665
    @deepakkumaar9665 3 роки тому

    Every step so clearly explained, thanks sir

  • @jonathannnabu3962
    @jonathannnabu3962 2 роки тому +1

    Awesome video. thank you

  • @MegaLex22
    @MegaLex22 Рік тому

    you saved me a ton of work! thank you!

  • @sharathreddy159
    @sharathreddy159 5 років тому +1

    Nice

    • @sharathreddy159
      @sharathreddy159 5 років тому

      I want joins interview scenario based questions and imp topics

  • @manikantach545
    @manikantach545 4 роки тому +1

    countw is not working for me ,the same code when i tried to do practice.Your tutorials are much helpful.

    • @kiranvenna
      @kiranvenna  4 роки тому +1

      Can you paste the code. So that I can check

    • @manikantach545
      @manikantach545 4 роки тому

      data one;
      length string $30.;
      input string $;
      cards;
      ab bc cd ef gh ij kl mn op qr st uv
      ;
      run;
      data two;
      set one;
      cnt_string=countw(string," ");
      run;
      proc print data=two;
      run;
      output:
      Obs string cnt_string
      1 ab .
      log;
      no erros

    • @kiranvenna
      @kiranvenna  4 роки тому +2

      you are reading only ab in dataset one. change your input statement to input string & $ ;

    • @manikantach545
      @manikantach545 4 роки тому

      Yes sir,After changing also it's not working.I think it May be because of I'm using version 9.

    • @International_Sanatani
      @International_Sanatani 3 роки тому +1

      @@kiranvenna what does '&' represent in input statement?

  • @_Prav_n
    @_Prav_n 4 роки тому +1

    Hi,
    You are doing great work!
    Could you make a video for overlapping dates concept.
    It would be of great help!!

    • @kiranvenna
      @kiranvenna  4 роки тому

      Thank you Can you get me an example or sample data of what you are asking

  • @rimalmahesh
    @rimalmahesh 3 роки тому +1

    Can you make a video on Hash object and Array in SAS

    • @kiranvenna
      @kiranvenna  3 роки тому +1

      I would like to make videos on SAS hash object sometime in future.

  • @nithingowda1678
    @nithingowda1678 Місяць тому

    how to extract the value of the maximum count sir ??

    • @kiranvenna
      @kiranvenna  Місяць тому

      Please provide simple input and output, i can help you

  • @sagarmandal4990
    @sagarmandal4990 3 роки тому

    Hi Sir,
    I have this dataset below.
    data Test;
    length Marks $15.;
    input Name $ Roll_Number Marks $;
    cards;
    Name1 101 70,80,90
    Name2 102 80,90,90,80
    Name3 102 90,80,90,80,90
    ;
    run;
    The marks column have values in comma separated way like 70,80,90 i.e math, eng, Hindi right
    but observation 2 for marks have 4 values comma separated 80,90,90,80 i.e math, eng, Hindi, some other subject
    so basically what is want to do is I want to get each comma separated value in their respective column
    the catch is that we don't know how many values will be there in the Marks column it is dynamic it could be 3 or 4 or 5
    I wan to use loop & scan or substr but I'm confused
    if you could please make a video or give an explanation on this

    • @kiranvenna
      @kiranvenna  3 роки тому

      I thought this video does that

  • @MANOJKUMAR-hs4wq
    @MANOJKUMAR-hs4wq 11 місяців тому

    Please tell me gow to solve this .
    I have column id and columns more than 200 (numeric)
    like jan p_jan_2007,p_feb_2007,.....p_jun_2023
    Q1) sum row wise
    Q2) drop the columns having zeros by id wise
    Ex below:
    Q1)
    Id p_jan2007 ..p_jun_2023 total
    Mx1 24 ... 112.5 136.5

    • @kiranvenna
      @kiranvenna  11 місяців тому

      Made a video on the first point, I did not clearly understand question2. ua-cam.com/video/Ou7cuCe9gbE/v-deo.html

  • @seminvikram6544
    @seminvikram6544 3 роки тому

    hello how to split one column into many

    • @kiranvenna
      @kiranvenna  3 роки тому

      unfortunately, I am unable to understand, can you give an example

  • @manchimvr3285
    @manchimvr3285 Рік тому

    Proc SQL step not working