streamlining spool format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

streamlining spool format

Hercules390 - Mvs mailing list
Apologies for the 3rd group this is
being discussed in, but I think this
is the proper place.

I wish to create a pristine spool,
that looks like it has never been
used, and if a warm start is done
with this spool disk, the STC
numbers will start with number 1,
and there should be no old
SYSLOG hanging around either.

Experimentation showed that I
can't issue "w close" before JES2
starts, so I need to start an instance
before I can terminate the syslog.
And I can't just use that instance
as-is, otherwise there is an extra
STC number lying around.

As per comments in the below
script, there are some mysteries:


# This script is designed to create a
# clean formatted spool.

# Before running it, you should put in
# a JES2PARM that has the initiators
# drained and doesn't have any startup
# commands

# Note that the shadow file seems to
# have a size of 3 MB instead of 5 MB
# if you start with a spool that needs
# a checkpoint record change so that the
# reply actually does something

hao clear
panrate 1000

# First we cold start
/r 00,clpa,cmd=co

ipl 148
pause 10

# We may or may not get a prompt for
# a record change. It is harmless to
# reply regardless
/r 00,y
pause 10

# Now we need to stop the syslog
/v 30e,hardcpy
pause 2

/w close
pause 5

# Terminate this instance of JES2
# so that we can start again with
# a format. Note that if we just
# terminate now, instead of doing
# a format, then the spool that is
# created will start STC numbers at
# 3 instead of the desired 2. Note
# that STC 1 is the SYSLOG.
/$pjes2
pause 20

# Now we can format
# There shouldn't be any prompt for
# record change because we just did
# a clean shutdown
/s jes2,parm=format
pause 20

# The first purge just initiates a drain
# for some reason
/$pjes2
pause 5

# This one is the one that actually works
/$pjes2
pause 20

quit


.
Please let me know if you think
something could be done better.

Log is also provided below.

Thanks. Paul.



04:33:37 Hercules Version 3.07:380-4.x
04:33:37 (c)Copyright 1999-2010 by Roger Bowler, Jan Jaeger, and others
04:33:37 Built on Dec  7 2016 at 12:43:32
04:33:37 Build information:
04:33:37   Windows (MSVC) build for AMD64
04:33:37   Modes: S/370 S/380 ESA/390 z/Arch
04:33:37   Max CPU Engines: 8
04:33:37   Using fthreads instead of pthreads
04:33:37   Dynamic loading support
04:33:37   Using shared libraries
04:33:37   HTTP Server support
04:33:37   No SIGABEND handler
04:33:37   Regular Expressions support
04:33:37   Automatic Operator support
04:33:37   Machine dependent assists: cmpxchg1 cmpxchg4 cmpxchg8
04:33:37 Running on PAUL-DELL Windows_NT-6.2 AMD64 MP=8
04:33:37 HHCHD018I Loadable module directory is hercules
04:33:37 Crypto module loaded (c) Copyright Bernard van der Helm, 2003-2010
04:33:37   Active: Message Security Assist
04:33:37           Message Security Assist Extension 1
04:33:37           Message Security Assist Extension 2
04:33:37 HHCPN210I Default Allowed AUTOMOUNT directory = "c:\mvs380\"
04:33:37 HHCCF065I Hercules: tid=00004D9C, pid=7640, pgid=7640, priority=8
04:33:37 HHCHT001I HTTP listener thread started: tid=00004C24, pid=7640
04:33:37 HHCHT013I Using HTTPROOT directory "c:\herc380\html\"
04:33:37 HHCHT006I Waiting for HTTP requests on port 8081
04:33:37 HHCSD004I Device 000C bound to socket 127.0.0.1:3505
04:33:37 HHCSD020I Socketdevice listener thread started: tid=00003AC8, pid=7640
04:33:37 HHCCF083I conf/mvs380.conf Including conf/mvs380_DASD.conf at 123 .
04:33:37 HHCDA004I opening dasd/mvsres.148 readonly
04:33:37 HHCDA020I dasd/mvsres.148 cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/sort01.131 readonly
04:33:37 HHCDA020I dasd/sort01.131 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/sort02.132 readonly
04:33:37 HHCDA020I dasd/sort02.132 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/sort03.133 readonly
04:33:37 HHCDA020I dasd/sort03.133 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/sort04.134 readonly
04:33:37 HHCDA020I dasd/sort04.134 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/sort05.135 readonly
04:33:37 HHCDA020I dasd/sort05.135 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/sort06.136 readonly
04:33:37 HHCDA020I dasd/sort06.136 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/work00.140 readonly
04:33:37 HHCDA020I dasd/work00.140 cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA020I dasd/hasp00.152 cyls=404 heads=19 tracks=7676 trklen=13312
04:33:37 HHCDA020I dasd/page00.160 cyls=698 heads=12 tracks=8376 trklen=8704
04:33:37 HHCDA020I dasd/page01.161 cyls=698 heads=12 tracks=8376 trklen=8704
04:33:37 HHCDA020I dasd/page02.162 cyls=698 heads=12 tracks=8376 trklen=8704
04:33:37 HHCDA020I dasd/work01.170 cyls=962 heads=12 tracks=11544 trklen=35840
04:33:37 HHCDA004I opening dasd/work02.180 readonly
04:33:37 HHCDA020I dasd/work02.180 cyls=886 heads=15 tracks=13290 trklen=47616
04:33:37 HHCDA004I opening dasd/work03.190 readonly
04:33:37 HHCDA020I dasd/work03.190 cyls=1114 heads=15 tracks=16710 trklen=56832
04:33:37 HHCDA004I opening dasd/mvscat.191 readonly
04:33:37 HHCDA020I dasd/mvscat.191 cyls=1114 heads=15 tracks=16710 trklen=56832
04:33:37 HHCDA004I opening dasd/seasik.192 readonly
04:33:37 HHCDA020I dasd/seasik.192 cyls=1114 heads=15 tracks=16710 trklen=56832
04:33:37 HHCDA020I dasd/mvssrc.193 cyls=2226 heads=15 tracks=33390 trklen=56832
04:33:37 HHCDA002E 01B4:File not found or invalid 'dasd/pub004.1b4'
04:33:37 HHCCF044E Initialization failed for device 01B4
04:33:37 HHCDA004I opening dasd/pub000.240 readonly
04:33:37 HHCDA020I dasd/pub000.240 cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/mvsdlb.248 readonly
04:33:37 HHCDA020I dasd/mvsdlb.248 cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/pub002.280 readonly
04:33:37 HHCDA020I dasd/pub002.280 cyls=1772 heads=15 tracks=26580 trklen=47616
04:33:37 HHCDA004I opening dasd/tmptmp.2b1 readonly
04:33:37 HHCDA020I dasd/tmptmp.2b1 cyls=1114 heads=15 tracks=16710 trklen=56832
04:33:37 HHCDA004I opening dasd/xmit90.2b2 readonly
04:33:37 HHCDA020I dasd/xmit90.2b2 cyls=1114 heads=15 tracks=16710 trklen=56832
04:33:37 HHCDA004I opening dasd/start1.150 readonly
04:33:37 HHCDA020I dasd/start1.150 cyls=808 heads=19 tracks=15352 trklen=13312
04:33:37 HHCDA004I opening dasd/spool0.151 readonly
04:33:37 HHCDA020I dasd/spool0.151 cyls=808 heads=19 tracks=15352 trklen=13312
04:33:37 HHCDA004I opening dasd/cbt000.340 readonly
04:33:37 HHCDA020I dasd/cbt000.340 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/cbt001.341 readonly
04:33:37 HHCDA020I dasd/cbt001.341 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/cbt002.342 readonly
04:33:37 HHCDA020I dasd/cbt002.342 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/cbtcat.343 readonly
04:33:37 HHCDA020I dasd/cbtcat.343 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/src000.348 readonly
04:33:37 HHCDA020I dasd/src000.348 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/src001.349 readonly
04:33:37 HHCDA020I dasd/src001.349 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/src002.34a readonly
04:33:37 HHCDA020I dasd/src002.34a cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/srccat.34b readonly
04:33:37 HHCDA020I dasd/srccat.34b cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/smp001.149 readonly
04:33:37 HHCDA020I dasd/smp001.149 cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/smp002.14a readonly
04:33:37 HHCDA020I dasd/smp002.14a cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/smp003.14b readonly
04:33:37 HHCDA020I dasd/smp003.14b cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/smp004.14c readonly
04:33:37 HHCDA020I dasd/smp004.14c cyls=560 heads=30 tracks=16800 trklen=19456
04:33:37 HHCDA004I opening dasd/js2sp0.700 readonly
04:33:37 HHCDA020I dasd/js2sp0.700 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/dlicat.138 readonly
04:33:37 HHCDA020I dasd/dlicat.138 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/dlisys.139 readonly
04:33:37 HHCDA020I dasd/dlisys.139 cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/dli000.13a readonly
04:33:37 HHCDA020I dasd/dli000.13a cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/dli001.13b readonly
04:33:37 HHCDA020I dasd/dli001.13b cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/dli002.13c readonly
04:33:37 HHCDA020I dasd/dli002.13c cyls=200 heads=20 tracks=4000 trklen=7680
04:33:37 HHCDA004I opening dasd/js3sp0.710 readonly
04:33:37 HHCDA020I dasd/js3sp0.710 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCDA004I opening dasd/js3res.711 readonly
04:33:37 HHCDA020I dasd/js3res.711 cyls=555 heads=30 tracks=16650 trklen=19456
04:33:37 HHCTE001I Console connection thread started: tid=000048BC, pid=7640
04:33:37 HHCTE003I Waiting for console connection on port 3270
04:33:37 HHCTA066I 0400: option 'level' accepted.
04:33:37 HHCTA066I 0401: option 'level' accepted.
04:33:37 HHCTA066I 0402: option 'level' accepted.
04:33:37 HHCTA066I 0403: option 'level' accepted.
04:33:37 HHCCP002I CPU0000 thread started: tid=00002928, pid=7640, priority=0
04:33:37 HHCCP003I CPU0000 architecture mode S/380
04:33:37 HHCPN001I Control panel thread started: tid=00004D9C, pid=7640
04:33:37 HHCTT002I Timer thread started: tid=00005A60, pid=7640, priority=-20
04:33:37 HHCPN008I Script file processing started using file "conf/spoolfmt.rc"
04:33:37 HHCAO001I Hercules Automatic Operator thread started;
04:33:37           tid=00002AD4, pri=0, pid=7640
04:33:37 # This script is designed to create a
04:33:37 # clean formatted spool.
04:33:37 # Before running it, you should put in
04:33:37 # a JES2PARM that has the initiators
04:33:37 # drained and doesn't have any startup
04:33:37 # commands
04:33:37 # Note that the shadow file seems to
04:33:37 # have a size of 3 MB instead of 5 MB
04:33:37 # if you start with a spool that needs
04:33:37 # a checkpoint record change so that the
04:33:37 # reply actually does something
04:33:37 hao clear
04:33:37 HHCAO022I All automatic operation rules cleared
04:33:37 panrate 1000
04:33:37 # First we cold start
04:33:37 /(001F) r 00,clpa,cmd=co
04:33:37 ipl 148
04:33:37 HHCPN011I Pausing SCRIPT file processing for 10 seconds...
04:33:37 IEA101A SPECIFY SYSTEM PARMS FOR MVS/380 1.2 v03.8 TK3+
04:33:37 HHCCD001I Readahead thread 1 started: tid=00001130, pid=7640
04:33:37 HHCCD001I Readahead thread 2 started: tid=00001C4C, pid=7640
04:33:37 HHCCD002I Writer thread 1 started: tid=00003F5C, pid=7640
04:33:37 HHCCD003I Garbage collector thread started: tid=00002BDC, pid=7640
04:33:37 IEA940I THE FOLLOWING PAGE DATA SETS ARE IN USE
04:33:37  PLPA ... SYS1.PAGELPA
04:33:37  COMMON . SYS1.PAGECSA
04:33:37  DUPLEX . SYS1.DUPLEX
04:33:37  LOCAL .. SYS1.PAGEL01
04:33:37  LOCAL .. SYS1.PAGEL02
04:33:37  LOCAL .. SYS1.PAGEL03
04:33:38 HHCCD002I Writer thread 2 started: tid=00004CDC, pid=7640
04:33:42 *IEE362A SMF ENTER DUMP FOR SYS1.MANY ON MVSRES
04:33:42  IEE360I SMF NOW RECORDING ON SYS1.MANX ON MVSRES TIME=18.33.42
04:33:42  IGF992I  MIH INIT COMPLETE, PRI=000300, SEC=000015
04:33:43  IEF677I WARNING MESSAGE(S) FOR JOB JES2     ISSUED
04:33:43 *00 $HASP436 REPLY Y OR N TO CONFIRM CHECKPOINT RECORD CHANGE
04:33:47 HHCPN012I Resuming SCRIPT file processing...
04:33:47 # We may or may not get a prompt for
04:33:47 # a record change. It is harmless to
04:33:47 # reply regardless
04:33:47 /(001F) r 00,y
04:33:47 HHCPN011I Pausing SCRIPT file processing for 10 seconds...
04:33:47  IEE600I REPLY TO 00 IS;SUPPRESSED
04:33:47  $HASP493 JES2 COLD-START IS IN PROGRESS
04:33:49  $HASP412 MAXIMUM OF 1   READER(S)  EXCEEDED
04:33:49 18.33.49           IEE041I THE SYSTEM LOG IS NOW ACTIVE
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           IEE302I 400      ONLINE
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP000 OK
04:33:49 18.33.49           $HASP099 ALL AVAILABLE FUNCTIONS COMPLETE
04:33:49 18.33.49           $HASP160 PRINTER1 INACTIVE - CLASS=AP
04:33:49 18.33.49           $HASP160 PRINTER2 INACTIVE - CLASS=Z
04:33:49 18.33.49           $HASP160 PUNCH1   INACTIVE - CLASS=B
04:33:57 HHCPN012I Resuming SCRIPT file processing...
04:33:57 # Now we need to stop the syslog
04:33:57 /(001F) v 30e,hardcpy
04:33:57 HHCPN011I Pausing SCRIPT file processing for 2 seconds...
04:33:57 18.33.57           IEE349I HARDCOPY CONSOLE
04:33:57  CONSOLE/ALT     COND   AUTH   ID  ROUTCD
04:33:57      30E/010      H   CMDS     07 ALL
04:33:59 HHCPN012I Resuming SCRIPT file processing...
04:33:59 /(001F) w close
04:33:59 HHCPN011I Pausing SCRIPT file processing for 5 seconds...
04:33:59 18.33.59           IEE043I A SYSTEM LOG DATA SET HAS BEEN QUEUED TO SYSOUT CLASS L
04:33:59 18.33.59           IEE037I LOG NOT ACTIVE
04:33:59 18.33.59 STC    1  $HASP250 SYSLOG   IS PURGED
04:33:59 18.33.59           $HASP099 ALL AVAILABLE FUNCTIONS COMPLETE
04:34:04 HHCPN012I Resuming SCRIPT file processing...
04:34:04 # Terminate this instance of JES2
04:34:04 # so that we can start again with
04:34:04 # a format. Note that if we just
04:34:04 # terminate now, instead of doing
04:34:04 # a format, then the spool that is
04:34:04 # created will start STC numbers at
04:34:04 # 3 instead of the desired 2. Note
04:34:04 # that STC 1 is the SYSLOG.
04:34:04 /(001F) $pjes2
04:34:04 HHCPN011I Pausing SCRIPT file processing for 20 seconds...
04:34:09 18.34.09           $HASP085 JES2 TERMINATION COMPLETE
04:34:24 HHCPN012I Resuming SCRIPT file processing...
04:34:24 # Now we can format
04:34:24 # There shouldn't be any prompt for
04:34:24 # record change because we just did
04:34:24 # a clean shutdown
04:34:24 /(001F) s jes2,parm=format
04:34:24 HHCPN011I Pausing SCRIPT file processing for 20 seconds...
04:34:24 18.34.24           IEF677I WARNING MESSAGE(S) FOR JOB JES2     ISSUED
04:34:24 18.34.24           $HASP493 JES2 COLD-START IS IN PROGRESS
04:34:24 18.34.24           $HASP423 JS2SP0 IS BEING FORMATTED
04:34:36 18.34.36           $HASP412 MAXIMUM OF 1   READER(S)  EXCEEDED
04:34:36 18.34.36           IEE302I 400      ONLINE
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP000 OK
04:34:36 18.34.36           $HASP099 ALL AVAILABLE FUNCTIONS COMPLETE
04:34:36 18.34.36           $HASP400 ENTER REQUESTS
04:34:44 HHCPN012I Resuming SCRIPT file processing...
04:34:44 # The first purge just initiates a drain
04:34:44 # for some reason
04:34:44 /(001F) $pjes2
04:34:44 HHCPN011I Pausing SCRIPT file processing for 5 seconds...
04:34:44 18.34.44           $HASP000 JES2 NOT DORMANT -- SYSTEM NOW DRAINING
04:34:44 18.34.44           $HASP099 ALL AVAILABLE FUNCTIONS COMPLETE
04:34:44 18.34.44           $HASP160 PRINTER1 INACTIVE - CLASS=AP
04:34:44 18.34.44           $HASP160 PRINTER2 INACTIVE - CLASS=Z
04:34:44 18.34.44           $HASP160 PUNCH1   INACTIVE - CLASS=B
04:34:49 HHCPN012I Resuming SCRIPT file processing...
04:34:49 # This one is the one that actually works
04:34:49 /(001F) $pjes2
04:34:49 HHCPN011I Pausing SCRIPT file processing for 20 seconds...
04:34:54 18.34.54           $HASP085 JES2 TERMINATION COMPLETE
04:35:09 HHCPN012I Resuming SCRIPT file processing...
04:35:09 quit
Loading...