Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : @OPENDSN

@OPENDSN
Specifies the name of the file that is subsequently used by @READDSN or @WRITEDSN. (C)
Invocation
CALL @OPENDSN(dsname)
 
A character string specifying the file to open. Its syntax is V (variable-length character string). It has a length of 54 for z/OS, 512 for Windows, and 1023 for Solaris.

Usage Notes
 
Specify a fully qualified data set name. It can include a member name. For example, a valid dsname is:
A Windows or Solaris file
Specify either the full path or only the filename. If you specify only the filename, the DSDIR Execution Environment parameter must be set to point to the directory to use. Refer to TIBCO Object Service Broker Parameters for more information about this parameter.
@OPENDSN accesses a z/OS file using the data set name. There is no provision for using a DDNAME with this tool instead of a data set name.
Example
The following rule:
1.
2.
3.
4.
5.
6.

 
OPENDSN_1;
_ LOCAL RECORD;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ CALL @OPENDSN(TSOID || '.EXAMPLES.DATA'); | 1
_ FORALL EMPLOYEE : | 2
_ CALL @WRITEDSN(EMPLOYEE.LNAME); |
_ END; |
_ CALL @CLOSEDSN; | 3
_ CALL @OPENDSN(TSOID || '.EXAMPLES.DATA'); | 4
_ RECORD = @READDSN; | 5
_ CALL MSGLOG(RECORD); | 6
_ CALL @CLOSEDSN; | 7
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following output:

 
-------------------------- INFORMATIONAL MESSAGE LOG --------------------------
COMMAND ===> SCROLL ===> P
SMYTHE

 
 
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved