|
From: George T. <gt...@pa...> - 2003-01-21 17:01:19
|
Chuck asked yesterday:
> What is the best way to get routines and globals from MSM (Windows NT) to
> GT.M (Linux)?
GT.M works with each MUMPS routine as a separate file. This actually leads
to conveniences in terms of version control, patching, etc. Here is a
subroutine I wrote to output DTM routines to a file directory, let's say
"C:\mymumps\RSAVE\". Then I just FTP from that directory to my GT.M target
system, and don't have to worry about GT.M's intake routine %RI. The
file-transfer process must retain the case of the file name, with its ".m"
extension.
;
OUT ;
S PATH="C:\mymumps\RSAVE\"
X ^%ZOSF("RSEL")
W !! S X=0 F S X=$O(^UTILITY($J,X)) Q:X="" D
.O 10:("W":PATH_X_".m")
.U 10 F T=1:1 S L=$T(+T^@X) Q:L="" W L,!
U $P Q
--George Timson
|