COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-32
Saved Message Utility (SMU) Overview
Programs compiled with the COBOL85 compiler can call all of the SMU routines listed
in Table 13-1. Programs compiled with the NMCOBOL compiler can call only the new
routines.
Figure 13-3. Effect of Saved Message Utility (SMU) Routines
Table 13-11. Saved Message Utility (SMU) Routines (page 1 of 2)
Original Routine
1
New Routine
2
ALTERPARAMTEXT None
CHECKLOGICALNAME SMU_Assign_CheckName_
CHECKMESSAGE SMU_Message_CheckNumber_
DELETEASSIGN SMU_Assign_Delete_
DELETEPARAM SMU_Param_Delete_
DELETESTARTUP SMU_Startup_Delete_
GETASSIGNTEXT SMU_Assign_GetText_
1. In the COBOLLIB file. Extension to the HP COBOL and FORTRAN 77 products, except as noted.
2. In the CLULIB file for the COBOL85 compiler and the ZCRESRL file for the NMCOBOL compiler.
3. In the OSS environment, you can also use the HP C
getenv function. SMU_Param_GetText_ returns only
PARAM equivalents, but the HP C
getenv function returns other environment variables as well.
4. Not an extension to the HP COBOL and FORTRAN 77 products
Descendent
Process
"Parent" COBOL process
Saves the messages
Modifies the messages
Uses CREATEPROCESS to launch
a new process that has custom-
tailored ASSIGN, PARAM, and
startup messages
Startup Message (IN, OUT, default volume and subvolume)
ASSIGNs (fd-name = actual-file-name)
PARAMs (name and associated value)
Saved
Messages
VST521.vsd