OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-222
Translation Application Example
1 /***********************************************************************/
2 /* */
3 /* Test Translation Application for D42 Changes to FTAM */
4 /* */
5 /***********************************************************************/
6 /* */
7 /* */
8 /* Program Name: exctran1 */
9 /* */
10 /* Program Description: */
11 /* */
12 /* This program opens the Responder file and issues ‘enable */
13 /* translation’ command. It then reads its $RECEIVE and processes all */
14 /* translation requests. */
15 /* */
16 /* To compile in the Native environment: */
17 /* > NMC / IN exctran1/o; runnable, symbols, winspect, */
18 /* extensions, strict, runnamed, extensions */
19 /* */
20 /* To compile in the TNS environment: */
21 /* > C /IN exctran1/o */
22 /* */
23 /***********************************************************************/
24 /* */
25 /* Note:Before running this program, correctly set the following: */
26 /* */
27 /* a) fixed environment variables */
28 /* > param responder "$xxx" */
29 /* */
30 /* b) Any other environment variables will be used to provide */
31 /* filenames to translate. For example: */
32 /* > param incomingfilename */
33 /* "\sys.$disc.transltd.filename" */
34 /* */
35 /***********************************************************************/
36 /* Change these to corresponding subvolumes on your system: */
37 #pragma SSV0 "$system.system" /* Look for C runtime here */
38 #pragma SSV1 "$ftam.t6982d42" /* Look for FTAM files here */