UNIFY FILEMAN CODE FOR SAVING ROUTINES

Bug #446644 reported by JSHER
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenVista/GT.M Integration
Fix Released
Undecided
Unassigned

Bug Description

^DD("OS",19,"ZS") and ^%ZOSF("SAVE") in GT.M should maintain a single place for determining default routine directory and format for saving routine source code and zlinking the routines.

Related branches

Jon Tai (jontai)
Changed in openvista-gtm-integration:
milestone: none → 0.8.7
Revision history for this message
Jon Tai (jontai) wrote :

Joel, it appears that you have modified ^DD("OS",19,"ZS") to call D SAVE^%ZOSV2(X,1), but have we coordinated this change with George? (^DD("OS",19,"ZS") is set by FileMan, right?) I suppose we have to update ^ZOSV2GTM to support the second argument to SAVE before FileMan can be updated, but what about folks who are running FileMan but not our GT.M Integration stuff?

Revision history for this message
JSHER (joel-sher) wrote :

We can still release the ZOSV2GTM change. I'll contact George but the Fileman change can be later or we can document that the field in MUMPS operating system file can be modified manually.

Revision history for this message
Jon Tai (jontai) wrote :

OK I'm putting this up for review then.

Revision history for this message
JSHER (joel-sher) wrote :

George wanted this done differently.
Have the "ZS" Node call ^%ZOSV("SAVE") and have SAVE^ZOSV2 maintain a single parameter and determine if the array has an ending zero subscript.

^DD("OS",19,"ZS")
N DIE,XCN S XCN=0,DIE="^UTILITY($J,0," X ^%ZOSF("SAVE")

^%ZOSF("SAVE")
D SAVE^%ZOSV2(X)

Jon I've made a change to ZOSV2GTM in production if you want to submit that for review.

Revision history for this message
Jon Tai (jontai) wrote :

I've updated the branch with your revised version. I have to admit I'm not familiar enough with the structure of DIE and XCN to really review the patch, but I did notice you seem to be NEWing %S even though it's not used?

Also, are there easy ways to test this code from both the FileMan (^DD("OS",19,"ZS")) route and the ^%ZOSF("SAVE") route?

Revision history for this message
JSHER (joel-sher) wrote :

Compiling a template D ^DIPZ for print templates uses the "ZS" logic

Importing a routine in KIDS uses the ^%ZOSF("SAVE")

%S (wont hurt GFT seemed to recall it as needed)

Jon Tai (jontai)
Changed in openvista-gtm-integration:
status: New → Fix Committed
Jon Tai (jontai)
Changed in openvista-gtm-integration:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.