Ignore:
Timestamp:
Mar 2, 2012, 1:23:23 AM (12 years ago)
Author:
George Lilly
Message:

updates for rdf out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XGET1.m

    r1368 r1371  
    237237 q
    238238 ;
     239output(zwhat,zfname,zdir) ; function to write an array to a host file
     240 ; if zdir is ommitted, will output to the CCR directory
     241 ; ^TMP("C0CCCR","ODIR")
     242 ; if fname is ommitted, will output yyyy-mm-dd-hh-mm-ss-C0XOUT.out
     243 ; zwhat is passed by name
     244 ;
     245 i '$d(zdir) s zdir=$G(^TMP("C0CCCR","ODIR"))
     246 i '$d(zfname) d  ;
     247 . s zfname=$$FMTE^XLFDT($$NOW^XLFDT,7)
     248 . s zfname=$tr(zfname,"/","-")
     249 . s zfname=$tr(zfname,"@","-")
     250 . s zfname=$tr(zfname,":","-")
     251 . s zfname=zfname_".out"
     252 i $e(zwhat,1,1)'="^" d  ; not a global
     253 . k ^TMP("C0XOUT",$J)
     254 . m ^TMP("C0XOUT",$J)=@zwhat
     255 . s zwhat=$na(^TMP("C0XOUT",$J,1))
     256 n zout s zout=""
     257 s zout=$$OUTPUT^C0CXPATH(zwhat,zfname,zdir)
     258 K ^TMP("C0XOUT",$J)
     259 Q zout
     260 ;
Note: See TracChangeset for help on using the changeset viewer.