SAS CHARACTER FUNCTIONS - 6 | INDEX & FIND FUNCTIONS IN SAS | FINDING A WORD/CHARACTER IN A CHAR VAR

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 38

  • @maneeshrathod3208
    @maneeshrathod3208 2 ปีที่แล้ว +2

    You made me learning SAS so easy, for everything I come here only,
    And left from here with a 😊 smile.

  • @KIRANSONAWANE-fd4hr
    @KIRANSONAWANE-fd4hr 6 หลายเดือนก่อน +1

    GREAT EXPLANATION SIR THANK YOU SO MUCH

    • @learnerea
      @learnerea  3 หลายเดือนก่อน

      Thanks and welcome

  • @maqboolthoufeeqt
    @maqboolthoufeeqt 2 ปีที่แล้ว +1

    one of the best tutorial series. Thank you so much

    • @learnerea
      @learnerea  2 ปีที่แล้ว

      Glad it was helpful!

  • @_rawat.rohit_
    @_rawat.rohit_ 3 ปีที่แล้ว +3

    even translate the whole functions of index and find like index, IndexW, indexC, find, find(i)

  • @neerajrcit
    @neerajrcit 2 ปีที่แล้ว +1

    than you for these videos. i wish i could find them earlier. :-)

  • @SanviSree-ti8ve
    @SanviSree-ti8ve ปีที่แล้ว +1

    • @learnerea
      @learnerea  ปีที่แล้ว

      Glad it was helpful

  • @lifeisdrama511
    @lifeisdrama511 3 ปีที่แล้ว

    Thank you..very helpful..

  • @rameshgaurappa6143
    @rameshgaurappa6143 ปีที่แล้ว +1

    Hai sir... Its a nice vedio... and can you explain if the word country repeated 3rd time( or next something) again in statement. how can i know the position of word country(3rd ( or next something)) by program...?

    • @learnerea
      @learnerea  ปีที่แล้ว

      You can try nesting the find function thrice for the start postion, something like below -
      exists = find(string, 'country', find(string, 'country',find(string, 'country')+1)+1);

  • @ashok55pharmacy
    @ashok55pharmacy ปีที่แล้ว

    hi sir, great work,if possible pls upload a video on nesting functions

    • @learnerea
      @learnerea  ปีที่แล้ว

      I would recommend you post your problem statement for the nesting functions and we will solve that..

  • @subuddhiba
    @subuddhiba 2 ปีที่แล้ว

    Hi
    How tondo this if have list words and all of them to find in text string.. can u please help.

    • @learnerea
      @learnerea  ปีที่แล้ว

      store all those words in a macro variable and use do loop to check one by one.
      if required further clarity, try to put your question with an example.. I'll explain it further

  • @అదన్నమాట
    @అదన్నమాట 4 ปีที่แล้ว +1

    Is there any modifiers other than " i"

    • @learnerea
      @learnerea  4 ปีที่แล้ว

      The below link has entire list of modifiers which can be used here
      documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarget=n1mdh2gvd5potjn14jipysvzn4o7.htm&locale=en

    • @అదన్నమాట
      @అదన్నమాట 4 ปีที่แล้ว

      @@learnerea thank you.
      Your videos short and sweet very usefull 👍🏼

    • @learnerea
      @learnerea  4 ปีที่แล้ว

      @@అదన్నమాట your heartiest welcome and thanks for the acknowledgement. Hope you subscribed us :)

  • @amnaaaa2580
    @amnaaaa2580 3 ปีที่แล้ว +2

    Thank you very useful video.
    but what if we have more than one thing we want to search for. e.g not just ".com" but other words as well.

    • @learnerea
      @learnerea  3 ปีที่แล้ว

      You can do the nesting using 'or'

    • @gunjanbhasin5546
      @gunjanbhasin5546 2 ปีที่แล้ว

      Can you show an example how to do it using or

  • @siddharthmishra6502
    @siddharthmishra6502 3 ปีที่แล้ว

    I don't think the data is available in the GitHub page

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 3 ปีที่แล้ว +1

    Suppose we have below value.
    LBORRES
    -------
    positive
    14.3
    neg
    negative
    10
    45
    123.2
    do we have any function which separate numeric value from character and put in different variable ? Kindly help.

    • @learnerea
      @learnerea  3 ปีที่แล้ว

      Check out the video on PERL REGULAR EXPRESSION in SAS and see if that helps you
      th-cam.com/video/U2gBW_sNB2o/w-d-xo.html
      let us know if this leaves you in doubt

    • @dandusathish4222
      @dandusathish4222 3 ปีที่แล้ว +1

      X=input(lborrrrs,??best.) Or y=input(compress(lborres,'''KD"),best.)

  • @deepakkumaar9665
    @deepakkumaar9665 3 ปีที่แล้ว

    sir, is this TRANSACTION data on github, I couldn't find it.

    • @learnerea
      @learnerea  3 ปีที่แล้ว

      Use the link given below:
      github.com/LEARNEREA/Excel_Files/find/master

  • @surajpatil2151
    @surajpatil2151 ปีที่แล้ว

    if i have numbers in variable 22 ,33 , 07 , 06, 05 and i want remove 0 from last second position can you suggest me code

    • @learnerea
      @learnerea  ปีที่แล้ว

      assuming you have '07' and what you want is just 7 -
      here you variable is character type, just converting that into numeric will solve the issue, try below -
      new_var = input(youvariable, best.)

    • @surajpatil2151
      @surajpatil2151 ปีที่แล้ว

      @@learnerea without converting to numberic

  • @subbuandra8195
    @subbuandra8195 3 ปีที่แล้ว

    nice

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 2 ปีที่แล้ว +2

    Hi Sir,
    Thank you for this video.
    lets consider a string
    123345-46-789-56
    12-23456-32-4356-765
    234-4-4567-43
    My requirement is to scan variable and if find second hyphen or as requirement then take all value from beginning to second hyphen and sore in a new variable. How can i achieve it.

    • @learnerea
      @learnerea  2 ปีที่แล้ว

      Hi Ajay,
      This is the input you have given, can you please put some sample of output which you are expecting out of this. it will make the problem statement more clear and simple for me

  • @memoriesforlife7685
    @memoriesforlife7685 3 ปีที่แล้ว

    can you do a vide o on worst observation carry forward

    • @memoriesforlife7685
      @memoriesforlife7685 3 ปีที่แล้ว +1

      i mean to say with in a group if we have any missing values i need to take lease value and carry forward to missing

    • @learnerea
      @learnerea  3 ปีที่แล้ว

      @@memoriesforlife7685 It will be better if you can give some example for your problem statement that will help to understand it clearly and explain