Solved

ZOS API Total Track

  • 11 August 2022
  • 1 reply
  • 85 views

I’m converting ZPL macros to ZOS API using C#

I have a macro that calls GETSYSTEMDATA 1

The contents of the operation at placed in a “vector” . Per the documentation, the vector’s "index” at 18 is  “Total Track”

I’ve having a hard time finding the corresponding API for accessing “Total Track” data.

Does anyone know the corresponding   ZOS API code?

icon

Best answer by MichaelH 11 August 2022, 20:44

View original

1 reply

Userlevel 6
Badge +2

Hey Brian,

I would simply use the GetOperandValue and the built-in TOTR operand from the MFE:

TheSystem.MFE.GetOperandValue(ZOSAPI.Editors.MFE.MeritFunctionOperand.TOTR, 0, 0, 0, 0, 0, 0, 0, 0)

For a lot of ZPL to API conversions, I would try to stick to as much built-in functionality (often through the MFE) to get the values since this will tend to have fewer bugs than implementing something yourself.

Reply