Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Simulation of procedure or batch mode

&pagelevel(4)&pagelevel

SDF-SIM permits testing in a simulated procedure mode if PROC-MODE=*YES is specified in the DEFINE-ENVIRONMENT statement. If TASK-TYPE=*BATCH is specified in this statement, testing can be carried out in simulated batch mode. Commands/statements must begin with a slash (/) or a double slash (//) and may be entered in lowercase form. If SPINOFF=*YES is specified in the DEFINE-ENVIRONMENT statement, the spin-off mechanism is triggered in the event of an error. If SDF-SIM is called in procedures or in batch files, the first position in the line must be occupied by an asterisk (*) for commands/statements to be simulated in procedure or batch mode. If this is not the case, the commands or statements will be interpreted as being real and will actually be processed.


/start-sdf-sim
% BLS0523 ELEMENT 'SDF-SIM', VERSION 'V04.5A10' FROM LIBRARY ':2OSH:$TSOS.SY
SLNK.SDF-SIM.045' IN PROCESS
% BLS0524 LLM 'SDF-SIM', VERSION ' ' OF '2001-04-19 16:11:57' LOADED
% BLS0551 COPYRIGHT (C) SIEMENS AG 2001. ALL RIGHTS RESERVED
% SDS0001 SDF-SIM VERSION 'V04.5A10' STARTED
%//def-test-obj *cmd
%//def-env par-fi=*std(user=*no),proc-mode=*yes,spinoff=*yes,display=*no (1)
%//start-simulation
% SDS0005 ’SYSTEM’ SYNTAX FILE ’$TSOS.SYS.SDF.SYSTEM.SYNTAX’ ACTIVATED
% SDS0005 ’GROUP’ SYNTAX FILE ’$TSOS.SYS.SDF.GROUP.SYNTAX.TSOS’ ACTIVATED
*fstat aaa.
(IN) FSTAT AAA. ———————————————————————————————————————————————————————— (2)
% CMD0661 DATA RECORD WAS READ INSTEAD OF COMMAND —————————————————————— (2)
*/fstat aaa.
(IN) /FSTAT AAA.
ENTRY : DCOFSTAT
INTERFACE : ISL
STRING FORM
/FSTAT AAA.
*/shh-file-att aaa.
(IN) /SHH-FILE-ATT
% CMD0186 OPERATION NAME 'SHH-FILE-ATT' UNKNOWN ———————————————————————— (3)
% CMD0205 ERROR IN PRECEDING COMMAND OR PROGRAM AND PROCEDURE STEP ————— (3)
TERMINATION: COMMANDS WILL BE IGNORED UNTIL /SET-JOB-STEP OR /LOGOFF ——— (3)
OR /ABEND IS RECOGNIZED ———————————————————————————————————————————————— (3)
*/sh-file-att aaa.
*/set-job-step
(IN) /SET-JOB-STEP
ENTRY : SSMSTEP
INTERFACE : ISL
STRING FORM
/STEP
*/sh-file-att aaa.
(IN) /SH-FILE-ATT AAA.
ENTRY : DCOFSTAT
INTERFACE : ISL
STRING FORM
/FSTATUS AAA.,LIST=(SYSOUT)
*/*
% SDS0002 SDF-SIM TERMINATED NORMALLY

     

  1. Procedure mode (PROC-MODE=*YES) is simulated. In addition, the spin-off mechanism (SPINOFF=*YES) is to be triggered in the event of an error.

  2. In procedure mode, an asterisk here must be followed by a slash; as the slash is missing, an error message is issued.

  3. An invalid command name is entered, thereby activating the spin-off mechanism. The subsequent correction attempt is ignored and cannot be implemented until /SET-JOB-STEP has been processed.