{" "} EXEX Programming Help by Programmers hub

EXEC Programming language

The Exec is a scripting language used by the CMS EXEC processor integrated with the IBM virtual machine. The Exec run the character of 130 long when type from the terminal and when read the character from the file it show the 72 characters. The code of the EXEC parses into the 8 character long blank-delimited tokens. EXEC scripting language allows the variable like other scripting languages. The variables have an ampersand followed by the up to seven alphanumeric character. There are are two types of variables user defined and per-defined variables.

Assigning value to EXEC variable

&variable = <value-assign>

EXEC Sample Code Example

{`
/* EXEC CICS RETURN TRANSID(NEXT) */
DO;
DCL DFHENTRY_B62D3C38_296F2687 BASED(ADDR(DFHEI0)) OPTIONS(INTER ASSEM
BLER) ENTRY(*,CHAR(4));
CALL DFHENTRY_B62D3C38_296F2687('xxxxxxxxxxxxxxxxx' /* '0E 08 80 00 03
00 00 10 00 F0 F0 F0 F0 F0 F0 F1 F0 'X */, NEXT);
END;  
`}

EXEC Control words

  • &ARGS - allows the user to redefine command arguments.
  • &BEGPUNCH - heads a sderies of lines to be spooled to the user's virtual punch.
  • &BEGSTACK - heads a series of lines to be placed in the user's console input stack.
  • &BEGTYPE - heads a series of lines to be typed on the user's terminal.
  • &END - marks the end of the lines processed by &BEGPUNCH, &BEGSTACK, or &BEGTYPE.
  • &CONTINUE - tells the interpreter to process the next line in the file