Type : CREACION_INTERNA
Todos los datos se simulan dentro del script (paso DATA, macrovariables) o son generados por las macros probadas.
| 1 | DATA _null_; |
| 2 | call symputx('sasjs1data','area:$char4.'!!'0d0a'x!!'Adak'); |
| 3 | call symputx('sasjs_tables','areas'); |
| 4 | RUN; |
| 5 | %put &=sasjs1data; |
| 1 | %mv_webout(FETCH) |
| 2 | |
| 3 | %mp_assertdsobs(work.areas, |
| 4 | desc=Test INPUT TABLE has 1 row, |
| 5 | test=EQUALS 1, |
| 6 | outds=work.test_results |
| 7 | ) |
| 1 | %let fref=%mf_getuniquefileref(); |
| 2 | %global _metaperson; |
| 3 | DATA some datasets; |
| 4 | x=1; |
| 5 | RUN; |
| 6 | %mv_webout(OPEN,fref=&fref,stream=N) |
| 7 | %mv_webout(ARR,some,fref=&fref,stream=N) |
| 8 | %mv_webout(OBJ,datasets,fref=&fref,stream=N) |
| 9 | %mv_webout(CLOSE,fref=&fref,stream=N) |
| 1 | DATA _null_; |
| 2 | INFILE &fref; |
| 3 | INPUT; |
| 4 | putlog _infile_; |
| 5 | RUN; |
| 6 | |
| 7 | LIBNAME test JSON (&fref); |
| 8 | DATA root; |
| 9 | SET test.root; |
| 10 | call symputx('checkval',sysvlong); |
| 11 | RUN; |
| 12 | DATA alldata; |
| 13 | SET test.alldata; |
| 14 | RUN; |
| 15 | |
| 16 | %mp_assert( |
| 17 | iftrue=(%str(&checkval)=%str(&sysvlong)), |
| 18 | desc=Check IF the sysvlong value was created |
| 19 | ) |