SPSS Statistics

 View Only
  • 1.  Version 28 do repeat if sysmis do not work

    Posted Thu August 12, 2021 10:23 AM
    Hello,

    The following commands work in version 25 but not in version 28. Does anyone know what is the equivalent commands to use in v. 28?  Thank you!

    (here Q7_1 to Q7_11 are numeric variables)

    do repeat Q7 = Q7_1 to Q7_11 /Q7YN =Q7YN1 to Q7YN11.
    compute Q7YN = 1.
    if sysmis(Q7) Q7YN = 0.
    execute.
    end repeat.

    ------------------------------
    Satomi Furuichi
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Version 28 do repeat if sysmis do not work

    IBM Champion
    Posted Thu August 12, 2021 11:46 AM
    Those comands would not quite work in V25 either.  You can't have an EXECUTE command inside a transformation loop, since EXECUTE is a procedure, i.e., it causes a data pass.  Delete it - it is almost never needed - or move it outside the loop, and you will be fine.

    --





  • 3.  RE: Version 28 do repeat if sysmis do not work

    Posted Thu August 12, 2021 11:54 AM
    Thank you!

    ------------------------------
    Satomi Furuichi
    ------------------------------