Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. roland9

    Else if statement

    Does this also work on the same level... data work.joblevels; set work.actors; if jobcode in ('Actor I', 'Actor II') then joblevel='Beginner'; if jobcode='Actor III' then joblevel='Advanced'; else joblevel='Unknown'; run; Which of the following represents the possible...
  2. roland9

    Else if statement

    It does thanks for your input..
  3. roland9

    Else if statement

    Thanks for the help Klaz..Slowly getting to know some basics in programming.. Roland
  4. roland9

    Else if statement

    Hey Klaz, I am sorry, being new to programing I still did not get it.What I understood that if level is 2 or 3 then expertise is 'medium'....(This statement should be true for all observations having a level of 2 or 3 ) Burt has a level of 4 which according to me falls in the High...
  5. roland9

    Else if statement

    Hi, I was wondering as to how the solution to this problem is (B).Howcome Burt who has a level of 4 is assigned Medium.. Obs name level 1 Frank 1 2 Joan 2 3 Sui 2 4 Jose 3 5 Burt 4 6 Kelly . 7 Juan 1 The following SAS program is submitted: data work.expertise; set work.levels; if level = ...
  6. roland9

    If then statement

    Sorry just ignore this thread...
  7. roland9

    If then statement

    Hi, If you want the following output .. capacity airplanetype staff 150 Large 10 then whats wrong with this code... data work.test; capacity = 150; if 100 le capacity le 200 then airplanetype = 'Large' and staff = 10; else airplanetype = 'Small' and staff = 5; run; Thanks
  8. roland9

    If then and do loop

    Hey thanks that helps.Sometimes just oversee these minute logical details.This seems to be a good forum to get some doubts cleared..
  9. roland9

    If then and do loop

    Hey it would be great if someone can tell me this by latest tomm morning as I have an exam which may consits of questions like these.. Thanks
  10. roland9

    If then and do loop

    Can someone please tell me for the following output capacity airplanetype staff 150 Large 10 why the first code works and the second doesnt... CODE_1 data work.test; capacity = 150; if 100 le capacity le 200 then do; airplanetype = 'Large'; staff = 10; end; else do; airplanetype...
  11. roland9

    Output statement and Do loop

    Thanks ....I read some documentation on the diff in both types as well as the trailing sign and it helped.I learnt even the debug option is useful sometimes to see the flow of logic.
  12. roland9

    Output statement and Do loop

    Data: Each record contains a varying number of values for Activity. First Five Records Raw Data File Excdata3 1---+----10---+----20---+----30---+----40 1051 TENNIS SWIMMING AEROBICS 1052 JOGGING BASKETBALL 1053 AEROBICS SWIMMING CYCLING 1054 GOLF JOGGING TENNIS 1055 WALKING AEROBICS...
  13. roland9

    single and double trailing

    Thanks Chris that helped...
  14. roland9

    single and double trailing

    Hey guys, I am trying to understand the difference between @ and @@. For the data below both works.So whats the diff and why do we need another @ (input sales :comma.)to read the data below...(Is there a simple way to solve problems with single and double trailing) DATA 0734 1,323.34...
  15. roland9

    Inputing SAS Data

    Thanks Chris that helped...
  16. roland9

    Inputing SAS Data

    Hey Chris, Thanks for the reply .Well what if I want surname and forename under one variable NAME (Eg Justin Blair, Christine Brady...) Is that possible and how would the code change for that Thanks, Roland
  17. roland9

    Inputing SAS Data

    Hi, I am a beginner in sas .Can someone tell me how to input this raw data file into sas .The fields are ID,Name, City, State, Sex and Code 1333,BLAIR,JUSTIN,STAMFORD,CT,M,PT2, 1428,BRADY,CHRISTINE,STAMFORD,CT,F,PT1, 1439,HARRISON,FELICIA,BRIDGEPORT,CT,F,PT1...

Part and Inventory Search

Back
Top