Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tempvar names in STJSON-files

    Hi,

    I often create documents with tables on >100 pages, I have written ADOs for table creation. I have also integrated STJSON files into these ADOs.

    But I have not succeeded to integrate tempvar names in the STJSON files, so far I have worked with __000002, ... but with longer tables-DO files I get sometimes __000003 and higher, despite capture drop __000* in the ADO-file at the beginning.

    Do you have an idea how I can write `var1' into the STJSON files (instead of __000002)?

    Thank you!

    Code:
    collect clear
    
    collect layout (__000001) (__000002#result[frequency percent])
    
    collect style cell, basestyle font(calibri, size(10) )
    
    collect style cell __000002#result[frequency], nformat(%9.0fc)
    collect style cell __000002#result[percent], nformat(%9.1fc)
    collect style row stack, nobinder
    
    collect style cell,  border( right, pattern(nil) )  border( left, pattern(nil) )
    collect style cell border_block[column-header], border(top, pattern(nil))
    collect style cell border_block[corner], border(top, pattern(nil))
    
    collect style cell __000001[.m], warn font( , bold )
    collect style cell cell_type[column-header], warn font( , bold )
     
    collect style notes, font(calibri, size(9) italic )
    
    collect style save "C:\ado\personal\CROSSTAB.stjson", replace
Working...
X