Previous Topic: All other menusNext Topic: Close the API Demo


Execute the Model Functions Example

Follow these steps:

  1. Select Model Functions option 8.

    ******   Schema Functions   ****** 62 - EApiFetchSchemaObjTypeInfo 63 - EApiFetchSchemaObjTypeByMnem 64 - EApiFetchSchemaPrpTypeInfo 65 - EApiFetchSchemaCharPrpDflt 66 - EApiFetchSchemaIntPrpDflt 67 - EApiFetchSchemaPrpForObjType 68 - EApiFetchSchemaAscTypeCodeInfo 69 - EApiFetchSchemaAscForObjType Select   <Enter to Exit>   ---> ******   Model Functions   ****** 8 -  EApiOpenModel 9 -  EApiFetchModelInfo 10 -  EApiFetchModelCreateInfo 11 -  EApiFetchModelLastUpdateInfo 12 -  EApiFetchModelParentInfo 13 -  EApiFetchModelChkoutInfo 14 -  EApiFetchModelByName 15 -  EApiLockModel 16 -  EApiUnlockModel 17 -  EApiFetchAllModelObjects 18 -  EApiFetchAllModelTypeObjs Select <Enter to Exit>   --->   8

  2. Enter inputs:
    1. Inputs - for function::EApiFetchModelInfo
    2. Model ID -> 9
  3. The output is displayed. Press Enter.

    Outputs for function::   EApiFetchModelInfo ModelName   =   PT ABLK TEST MODEL 01 ModelType   =   D ModelStatus   =   M Release   =   9.2.A6 UserId   =   AXE CodePage   =   0 LanguageCode   =   850 Function return status is EAPI_SUCCESSFUL_RC Press <Enter> to Continue

Note: To use the Lock and Unlock functions in the CSE, the servers must be up and running. Lock and Unlock do not function for the remote z/OS API. These functions always return a successful return code. For the Workstation API, the model ID is always 0 (zero).