A Summary of Commands

mkheader

As a shortcut, the input for the three prompts may be stored in another file (data file) and read in each time. For example:

mkheader application_name < data file

Once the header files are entered, mkheader writes a program called application_name_aloc.c to allocate the rest of user memory. The resulting source code is automatically compiled, using mkheader.a library functions, and then executed. This adds the remaining structure definitions to the application_name def.h header file. TSM does not allow a script to use more than 50,000 bytes of user memory. Scripts that exceed this limit are not run when data beyond the limit are accessed.

Files

/vs/bin/vs/mkheader/vs/bin/vrs/mkheader.a

Examples

The following are examples of the prompts and the output for the mkheader program. This example shows a user who needs some space for 20 characters, 2 integers, and a short variable. The user also needs to have space declared for a structure called dowj, which is used by the script. The header file is found in /att/msgipc/tsmdipappl.h.

In the example, the structure size of SZDOWJ is 16, which is automatically supplied by mkheader.

UCS 1000 R4.2 Administration 585-313-507

Issue 3 April 2000 536