Create .SPS and .TXT files in addition to the .sav file

Issue #58 new
Shlomi Lanton created an issue

Hi,

Is there any way to output the data in this form? with the .sps file, it's easier to update the variables data (name, type and labels).

Thanks, Shlomi

Comments (3)

  1. Albert-Jan Roskam repo owner

    Hi,

    What do you propose the .SPS should look like? Everything needed to recreate the .Sav, including metadata? I.e, DATA LIST command, VARIABLE LABELS, etc up until SAVE OUTFILE? It would be easy to make but laborious to do all the metadata.

    Regards, Albert-Jan

  2. Shlomi Lanton reporter

    Yes, it should include all the metadata DATA LIST, VARIABLE LABELS, VALUE LABELS and VARIABLE LEVEL

  3. Albert-Jan Roskam repo owner

    Btw, did you consider this:

    with SavHeaderReader(savFileName) as header:
        meta_txt = str(header)
    with SavReader(savFileName) as reader:
        report_txt = str(reader)
    
  4. Log in to comment