8.156.4 Examples

Example 1:

Perform chkdsk level '2' for the shadow file of dasd device 0148.

HHC00013I Herc command: 'sfk 0148 2'

HHC00333I 0:0148 size free nbr st reads writes l2reads hits switches

HHC00334I 0:0148 readaheads misses

HHC00335I 0:0148 --------------------------------------------------------------------

HHC00336I 0:0148 [*] 21632514 0% 10 886 426 16 715 1523

HHC00337I 0:0148 79 25

HHC00338I 0:0148 D:/MVS/DASD/MVSRES.CCKD

HHC00339I 0:0148 [0] 21627652 0% 9 rd 884 20 15

HHC00340I 0:0148 D:/MVS/SHADOW/MVSRES_*.CCKD

HHC00341I 0:0148 [1] 4862 15% 1 rw 2 406 1

Figure 285: SFK command (chkdsk level 2)

Example 2:

Perform chkdsk level '4' for the shadow file of dasd device 0148.

HHC00013I Herc command: 'sfk 0148 4'

HHC00372I 0:0148 CCKD file 'D:/MVS/DASD/MVSRES.CCKD': trk[10320] recovered offset 0x1003 len 763

HHC00373I 0:0148 CCKD file 'D:/MVS/DASD/MVSRES.CCKD': 1 trk images recovered

HHC00377I 0:0148 CCKD file 'D:/MVS/DASD/MVSRES.CCKD': free space rebuilt

HHC00333I 0:0148 size free nbr st reads writes l2reads hits switches

HHC00334I 0:0148 readaheads misses

HHC00335I 0:0148 --------------------------------------------------------------------

HHC00336I 0:0148 [*] 21632514 0% 10 886 426 16 715 1523

HHC00337I 0:0148 79 25

HHC00338I 0:0148 D:/MVS/DASD/MVSRES.CCKD

HHC00339I 0:0148 [0] 21627652 0% 9 rd 884 20 15

HHC00340I 0:0148 D:/MVS/SHADOW/MVSRES_*.CCKD

HHC00341I 0:0148 [1] 4862 15% 1 rw 2 406 1

Figure 286: SFK command (chkdsk level 4)

8.157 SH (Shell command)

8.157.1 Function

The SH command passes the given command and the parameters (if any) as-is to the shell for process-
sing. The results of the passed command are displayed on the Hercules console.

The special ‘STARTGUI’ command must be used if the command being started either directly or indirectly
starts a Windows graphical user interface (non command-line) program (e.g. Notepad). If STARTGUI is
not used in such cases then Hercules will hang until the graphical user interface program is closed. Note
that starting a batch file (command line program) that itself starts a graphical user interface program still
requires using STARTGUI.

If “foo.bat” contains “start notepad.exe” then issuing “sh foo.bat” will hang Hercules until Notepad is being
closed. The same applies if “sh start foo.bat” is used. The correct way is using ‘STARTGUI’ for invoking
foo.bat is “sh startgui foo.bat”.

8.157.2 Syntax

Descriptive

command [arg [arg ... ]]

Diagram

¬¬¬¬¬¬¬¬§¬¬¬ command ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬ÊÍ












arg

8.157.3 Parameter

STARTGUI

STARTGUI must be used if the command passed to the shell either directly or in-
directly starts a Windows graphical user interface (non command-line) program.

command

The command that is to be passed to the shell.

arg

These are the parameters passed to the command.

Previous Page Next Page