Hercules

Windows Setup

(click on the link above to see)


Operator Commands

  • R 1,WARM,NOREQ  (not able to convince the machine to do cold start, yet)
  • R 2,’RETRY’
  • S SHUTDWN    – initiate shutdown
  • $P JES2,ABEND – close JES2
  • R n,END
  • QUIESCE
  • V 1D5,OFFLINE    – disconnect device from system
  • V 1D5,ONLINE      – connect device to system
  • K N,PFK=(5,CMD=’VARY TCPIP,TCPIP,OBEYFILE,DSN=CENTER.PARMLIB(TCPPROF)’),CON=N
    – define  PF5 key to refresh TCPIP configuration
  • V TCPIP,,OBEYFILE,DSN=CENTER.PARMLIB(D530A)
  • $D SPOOL – display status of spool volunes
  • $D SPOOLDEF  – display JES2 spool info
  • D IPLINFO  – display IPL info
  • D CONSOLES – list operator consoles
  • V 361,CONSOLE – make 361 operator console
  • V 360,MSTCONS – make 360 master console
  • selected oper commands
  • another doc about commands

Hercules Commands

  • DETACH 0470    – detach device
  • ATTACH 0470 3270    – attach terminal
  • ATTACH 0312 3390 ‘filename’ – dynamically attach disk

XFER

    1. pre-allocate flat-dataset RECFM=FB,LRECL=80,BLKSIZE=3120
    2. XMIT node.id DA(‘dataset‘) OUTDATASET(‘flat-dataset‘)
    3. transfer binary
    4. RECEIVE INDATASET(‘flat-dataset‘)
    5. when asked, type:
      DA(‘new-dataset‘)

Directory

cd /home/tomek/Desktop/Hercules/emulate


Add disk

  1. cd /home/tomek/Desktop/Hercules/systems/zOSWORK
  2. dasdinit -bz2 TOMEK1.CCKD.M9.USER.bz2 3390-9 TOMEK1
  3. add unit to config file:
    030F 3390 ../systems/zOSWORK/TOMEK1.CCKD.M9.USER.bz2
  4.  restart Hercules
  5. oper console:
    V 30f,offline
  6. modify …MVS.JCL(DFSINIT) and submit
  7. oper console:
    r n,U
    v 30f,online
  8. do something so that the disk belongs to a storage group to ensure one can allocate datasets on it – not sure how to do it (yet)

Dynamically add disk

  1. cd /home/tomasz/Desktop/Mainframe/systems/zOSWORK
  2. dasdinit -bz2 TOMEK1.CCKD.M9.USER.bz2 3390 TOMEK1
  3. while Hercules is running, on Hercules console type:
    attach 313 3390 TOMEK1.CCKD.M9.USER.bz2
  4. modify …MVS.JCL(DFSINIT) and submit
  5. oper console:
    r n,U
    v 313,online
  6. add unit to config file to be used when Hercules is restarted next time:
    0313 3390 ../systems/zOSWORK/TOMEK1.CCKD.M9.USER.bz2

Details

Password-protected directions are here.


Network Setup (?)

  • V TCPIP,,STOP,CTCDEV1
  • V TCPIP,,OBEYFILE,DSN=[…].PARMLIB(D530A)
  • V TCPIP,,START,CTCDEV2

I have no idea whether/why I have to do it.


DB2

login as DBAUSER

@STA DB2 – oper console – start DB2
DSN SYSTEM(DSNA) – ISPF option 6
P;B;1 – admin tools
P;B;Q – QMF

CICS

S CICSTOR1 – oper – start CICS (TOR)
S CICSAOR1 – oper – start CICS (AOR)

Transactions

CRTE SYSID=C22A – route to AOR
CRTE SYSID=C21T – route to TOR
CEMT P SHUT

MQ

MQM1 START QMGR

S NVAS – start NetView Access Services

Spool Setup

  1. add a disk DMTCAx (see instructions above).
    Make sure that the disk is not managed by system (no STORAGEGRP on initialization parms)
  2. create DSN=SYS1.HASPACE,DISP=(NEW,KEEP),UNIT=3390,VOL=SER=DMTCAx,SPACE=(CYL,(3000),,CONTIG)
    1. SYS1.HASPACE is not going to be cataloged
  3. On oper console:
    1. $D SPL
    2. $S SPL(DMTCAx)
    3. After SYS1.HASPACE is formated by the system:
      $D SPL
    4. $T SPOOLDEF,TGSPACE=(MAX=30000)
  4. Enjoy low percentage of spool utilization