Linking to a CICS® server program using VBScript

This is similar to the previous section visual basic but the creating of the objects is different.

It is not necessary to DIM any variables with VBScript but it would be good programming practice to do so.

  Dim ECI, Connect, Flow, Buffer, UOW

To create the objects you use the code:

  Set ECI = CreateObject("Ccl.ECI")
  Set Connect = CreateObject("Ccl.Connect")
  Set Flow = CreateObject("Ccl.Flow")
  Set Buffer = CreateObject("Ccl.Buffer")
  Set UOW = Nothing

If you are not going to use a UOW, you must explicitly set it to 'Nothing' in VBScript.