Skip to main content
OCLC Support

AltProduceAndUpdateHoldings

Find the syntax, use, parameters, return values, and an example for the AltProduceAndUpdateHoldings macro command in Connexion client.
Syntax BOOL = CS.AltProduceAndUpdateHoldings
Use to For an existing record or workform, or for records or workforms selected in a list, update holdings (add your OCLC institution symbol). If workform(s), add to WorldCat.
Or
When offline, marks local record(s) for batch update and alternate produce.

Same as using the Action > Holdings > Alternate Produce and Update Holdings menu command.
Parameters None
Comments
  • If you are logged on, this macro does the action immediately online.
  • If you are working with local file records while offline, this macro marks the current record, or records selected in a list, ready (R) to batch-process the action.
Return values TRUE if the actions are successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Dim bResult As Integer

     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     CS.AltProduceAndUpdateHoldings True, True, 6

     CS.Search “WC”, “#2”

     bResult = CS.AltProduceAndUpdateHoldings

     If bResult = True Then
          MsgBox “The command completed successfully”
     Else
          MsgBox “The command did not complete successfully”
     End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • For record number 1:
    • Updates holdings (adds your institution symbol)
  • For record number 2:
    • Updates holdings (adds your institution symbol)
    • If the action is successful, returns the message: The command completed successfully. If not, returns the message: The command did not complete successfully.