Guest User

Untitled

a guest
Jan 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. dimension
  2. rk | 1_nm | 2_rk | 2_nm | 2_parent_rk | 3_rk | 3_nm | 3_parent_rk
  3.  
  4. 1 one - - - - - -
  5. 2 two - - - - - -
  6. 3 - 3 three 1 - - -
  7. 4 - 4 four 1 - - -
  8. 5 - 5 five 2 - - -
  9. 6 - 6 six 2 - - -
  10. 7 - - - - 7 seven 3
  11. 8 - - - - 8 eight 3
  12. 9 - - - - 9 nine 5
  13.  
  14. rk | 1_nm | 2_nm | 3_nm
  15. 1 one - -
  16. 2 two - -
  17. 3 one one three -
  18. 4 one one four -
  19. 5 two two five -
  20. 6 two two six -
  21. 7 one one three one three seven
  22. 8 one one three one three eight
  23. 9 two two five two five nine
  24.  
  25. proc sql noprint;
  26. create table dim as
  27. select *
  28. from dimension;
  29. quit;
  30.  
  31. proc sql noprint;
  32. update dimension
  33. set 1_nm = (select tbl.1_nm from dim as tbl where dimension.2_parent_rk eq tbl.rk);
  34. quit;
Add Comment
Please, Sign In to add comment