*! gc_checkxis 0.5.1 2009-05-25 jsl
*   - rename command

//  check and necessary globals exist

capture program drop gc_checkxis
program define gc_checkxis, rclass

    version 9
    local error = 0
    foreach n in xallmng xgr0mng xgr1mng xallmn0 xallmn1 xgr0mn0 xgr1mn1 {
        if "$`n'"=="" {
            local error = 1
            di in red "\$`n' is not defined."
        }
    }
    if `error' {
        di in red "You need to run gdxis."
    }
    return local error = `error'

end
exit

* _gdxischeck3 0.3.0 2008-04-10 > No changes.
* _gcxischeck 0.1.1 2008-06-24 revise global names
* _gcxischeck 0.1.0 2008-06-18
* _gcxischeck 0.5.0 2009-05-22 jsl
* _gcxischeck 0.5.0 2009-05-22 jsl