SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  writing out a file conditional only if it has cases?

    Posted Wed October 25, 2023 02:41 PM
    Edited by Art Jack Wed October 25, 2023 02:42 PM

    Is there a way to make writing out a file conditional only if it has cases?  I have an automated script I place in an onedrive folder for our IT department to check with an email.  But I don't want to write out a file if there aren't any cases currently. - Art


    #Global AI and Data Science #SPSS Statistics
    ------------------------------
    Art Jack
    ------------------------------



  • 2.  RE: writing out a file conditional only if it has cases?

    Posted Wed October 25, 2023 02:56 PM
    Nothing automatic, but you can embed the write in a small Python fragment that checks the case count: spss.GetCaseCount().

    --