lilysecret

Better Grid Tables

Oct 15th, 2018
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. ''run1g.spx
  2. &makehtml.spx
  3. >PURGE_SAME
  4. >ALLOW_INDENT
  5. >PUT_CHARACTERS=-0B
  6. ~SET VARIABLE_LENGTH_CASEID=OK
  7. >LANGUAGE CHARACTER_SET=EXTENDED_ASCII
  8. >DEFINE @STUDY1 189997
  9. >DEFINE @STUDY2 18-9997
  10. >DEFINE @TABLES 189997G1
  11. ''>USE_DB J@STUDY1
  12. >CREATE_DB CD@STUDY1, SIZES=LARGE
  13. ~INPUT CD@STUDY1, DOT=50
  14. >PRINT_FILE @TABLES,PAGE_WIDTH=199,LASER_CONTROL=LJTABLES
  15. ~SET AUTOMATIC_TABLES,VARIABLE_NAMES,STACK_2=55000,DROP_LOCAL_EDIT,DROP_BASE
  16. ~SPEC_FILE G@TABLES
  17.  
  18. ~DEFINE
  19. &def.spx
  20. >DEFINE @RANKIT ''RANK_IF_INDICATED
  21. &runbody.spx
  22.  
  23.  
  24. TABSET={BANNER1:
  25. BANNER=: MAKE_BANNER JUSTIFY_LEVEL(1)=RIGHT FILL_TO_LEVEL=4
  26. ''[LEVEL=3] MARKETVISION RESEARCH - MVR# 18-9997 TIPPING BEHAVIOR
  27. [LEVEL=2] SERVICE
  28. [LEVEL=1] ONLINE GROCERY DELIVERY
  29. [LEVEL=1] CASUAL DINING
  30. [LEVEL=1] FINE DINING
  31. [LEVEL=1] DIRECT FOOD DELIVERY
  32. [LEVEL=1] INDIRECT FOOD DELIVERY
  33. [LEVEL=1] RIDE SHARE
  34. }
  35. COLUMN=:TOTAL
  36. STATISTICS=:ABCDEF
  37. EDIT={BAN01_EDIT: -COLUMN_TNA, COLUMN_WIDTH=9,STAT_MARKING="ABCDEFGHJKMNPQRSTVWXYZ"
  38. }
  39. }
  40.  
  41.  
  42. TABSET={ TS_Q8:
  43. TITLE=:Q.8 Why would you give the smallest tip amount for a/an [SPECIFIC SERVICE]? }
  44. STUB_PREFACE=NOBASE_NORANK
  45. STUB=:
  46. [BASE,FREQ,FREQ_ONLY,-SIGMA,PRTBASE,-COLSTAT,VPER=*] Base: Assigned the smallest tip amount for [specific service]
  47. [SUP,-SIGMA,-COLSTAT] No Answer (Don't Show)
  48. [COM]
  49. There is not a lot of work/effort involved for the service employee
  50. There is minimal interaction between me and the service employee
  51. The service employee's wage is not dependent on my tip
  52. I tip every service the same regardless of the type of service
  53. I do not value this service more than others
  54. [R=L]Other
  55. }
  56. ROW=:&
  57. >REPEAT $A=1,...,6;STRIP="$[BREAK] &"
  58. $[FILTER_BASE] [Q7_$A*F#6] $[] [Q8*F#1/2/3/4/5/998] $[BREAK] &
  59. >END_REPEAT
  60. }
  61.  
  62. TABSET={ TS_Q9:
  63. TITLE=:Q.9 Why would you give the largest tip amount for a/an [SPECIFIC SERVICE]? }
  64. STUB_PREFACE=NOBASE_NORANK
  65. STUB=:
  66. [BASE,FREQ,FREQ_ONLY,-SIGMA,PRTBASE,-COLSTAT,VPER=*] Base: Assigned the largest tip amount for [specific service]
  67. [SUP,-SIGMA,-COLSTAT] No Answer (Don't Show)
  68. [COM]
  69. There is a lot of work/effort involved for the service employee
  70. There is a lot of interaction between me and the service employee
  71. The service employee's wage is dependent on my tip
  72. I tip every service the same regardless of the type of service
  73. I value this service more than others
  74. [R=L]Other
  75. }
  76. ROW=:&
  77. >REPEAT $A=1,...,6;STRIP="$[BREAK] &"
  78. $[FILTER_BASE] [Q7_$A*F#1] $[] [Q9*F#1/2/3/4/5/998] $[BREAK] &
  79. >END_REPEAT
  80. }
  81.  
  82. '' *******************************************************
  83. ~SET PRINT_TABLE_NAME=T1, PAGE_NUMBER=1
  84. ~EXECUTE
  85. MAKE_TABLES
  86. ~END
Advertisement
Add Comment
Please, Sign In to add comment