SVC 39, LINKC2

INPUT

Register 15 Address of 8-byte COBOL program name in EBCDIC

Register 0 If bits 24-31 = 0, then bits 0-23 = parameter count.

  • If bits 24-31 = x'80', then find last parameter with high bit on and set r0 to number of parameters found.
  • If bits 24-31 = x'40', then process IMS parameters as follows: If first parameter <= F'18' then set r0 to value in first parameter + 1 else if first parameter > F'18' then find last parameter with high bit on and set r0 to number of parameters found.

Register 1 Address of list of addresses of parameters being passed

OUTPUT

Register 15 Return code:

  • 0=Successful
  • 16=Failure due to invalid name, duplicate name, or invalid address.