/** @file @brief Adds a string to a file @details Creates an fcmp function for appending a string to an external file. If the file does not exist, it is created. The function itself takes the following (positional) parameters: | PARAMETER | DESCRIPTION | |------------|-------------| | filepath $ | full path to the file| | string $ | string to add to the file | | mode $ | mode of the output - either APPEND (default) or CREATE | It returns 0 if successful, or -1 if an error occured. Usage: %mcf_string2file(wrap=YES, insert_cmplib=YES) data _null_; rc=mcf_string2file( "%sysfunc(pathname(work))/newfile.txt" , "This is a test" , "CREATE"); run; data _null_; infile "%sysfunc(pathname(work))/newfile.txt"; input; putlog _infile_; run; @param [out] wrap= (NO) Choose YES to add the proc fcmp wrapper. @param [out] lib= (work) The output library in which to create the catalog. @param [out] cat= (sasjs) The output catalog in which to create the package. @param [out] pkg= (utils) The output package in which to create the function. Uses a 3 part format: libref.catalog.package @param [out] insert_cmplib= DEPRECATED - The CMPLIB option is checked and values inserted only if needed.