Welcome to the DOS/VS 5 Pack v1r0m1
This document is the starting point to learn about "getting up and running" smoothly.
This is my first time around in preparing and documenting such a DOS/VS deliverable.
It is my intention that this first release of the documentation will be improved over time.
For feed-back, please post your questions, comments and suggestions in the H390-DOS
Yahoo! discussion group.
I hope you enjoy your experience with DOS/VS! See you on H390-DOSVS
Michel Beaulieu, P. Eng., MBA, Project+
February 2010 - Montréal QC Canada
Part 1: Pre-Requisite to run DOS/VS on your computer
Return to Top
The minimum requirement is to have a S/370 mainframe emulator like Hercules-390 or equivalent.
More information on Hercules-390 is available at
http://www.hercules-390.org
This documentation and the supporting files have been developped to run
in a Microsoft Windows environment.
The initial testing have been done with "Windows XP" 32-bit and "Windows 7" 64-bit.
This first version is intended to run directly with Hercules-390 (or Hercules-380).
It is understood that DOS/VS runs very well in a VM environemnt (VM/370 or VM/380).
The next update of the DOS/VS 5 packs will provide,
documentation and support files to run DOS/VS as a virtual machine in a VM setting.
For better usability, two optional additions to Hercules-390 are also configured.
- Configuration and Documentation are included on using "HercRdr" to submit your JCL to DOS/VS.
"HercRdr" is part of the Hercules Windows GUI available at the following link:
http://www.softdevlabs.com/Hercules/hercgui-index.html
- Configuration and Documentation include using "HercPrt" to capture the printed output.
"HercPrt" is available at the following link:
http://www.softdevlabs.com/Hercules/hercprt.html
The current 3.06 release version of Hercules does not have socket printer support required by HercPrt.
Until the next version of Hercules is released, you can use
one of the snapshots instead.
It is not recommended to use any snapshot earlier than, revision #5402 or so:
http://www.ivansoftware.com/snapshots/snapshots/
http://www.ivansoftware.com/cgi-bin/viewvc.cgi/
I have tested with version 5602, although the latest and most current/recent revision[*]) is
usually your best choice.
Part 2: Download Files
Return to Top
Space required for the download:
- Hercules - each version requires between 2MB to 4MB for download
- Hercules Tools - HercGUI executable is less than 1MB - HercPrt between 6MB and 12MB
- DOS/VS 5 Packs v1r0m1
- dosvs5pack-v1r0m1-run.zip requires about 70MB
- dosvs5pack-v1r0m1-support.zip requires between 3MB and 5MB
- dosvs5pack-v1r0m1-useful-ref.zip requires about 110MB
- VC++ redistributable files require between 2MB and 7MB each
To install you need the following files:
- Hercules Mainframe Emulator for Windows: (choose which one(s) you need)
- Tools for Hercules (Windows) from
http://www.softdevlabs.com :
- The zip files for DOS/VS 5 packs v1r0m1 from itbench.speakingmind.com
-
You need to register to download - (do only once)
(Only fields required: First Name, Last Name and e-mail)
To change your password, Login then Click the "Change Password" tab in the upper right corner
To select the files to download, Login then Click "DOS/VS 5 Packs v1r0m1"
under PRODUCT CATEGORIES in the left column and follow the instructions.
Here are the files availables for the DOS/VS 5 Packs v1r0m1:
- dosvs5pack-v1r0m1-run.zip             -- Run Time
- dosvs5pack-v1r0m1-support.zip       -- JCL and Support files
- dosvs5pack-v1r0m1-useful-ref.zip     -- Selected PDF manuals from
http://www.bitsavers.org/pdf/ibm/370/
-
If you enconter the following error when launching Hercules
Application failed to Initialise properly (0xc0150002)
Then you need to install Microsoft VC++ redistributables:
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update
-- and/or --
Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update
Part 3: Installation and Configuration
Return to Top
Space required for Installation:
- Hercules - each version requires between 5MB to 9MB for installation
- Hercules Tools - HercGUI executable is about 5MB - HercPrt between 9MB and 16MB
- DOS/VS 5 Packs v1r0m1
- dosvs5pack-v1r0m1-run.zip requires about 74MB (plan for increase)
- dosvs5pack-v1r0m1-support.zip requires between 3MB and 5MB (plan for extra)
- dosvs5pack-v1r0m1-useful-ref.zip requires about 110MB
- VC++ redistributable files require more that 10MB(please let me know) each
Here are the steps recommended for a first time user of Hercules.
Experienced users can skip steps that are not required.
-
Unzip Hercules-390 for Windows 32 bits into a directory
ex: C:\Prog\H390W32\W32-hercules-SVN-5602
Create the H390W32 environment variable to point to that directory.
-
(Optional) Unzip Hercules-390 for Windows 64 bits into a directory
ex: C:\Prog\H390W64\W64-hercules-SVN-5602
Create the H390W64 environment variable to point to that directory.
-
(Optional) Unzip Hercules-380 for Windows 32 bits into a directory
ex: C:\Prog\H380W32\hercules380-3_06-7_0
Create the H380W32 environment variable to point to that directory.
-
(Optional) Run the Hercules Installer for Windows (32 bits)
That will install the HTML files that can then be copied into the other install directories.
ex: copy this directory into the others --> C:\Program Files\hercules\hercules-3.06\html
-
Unzip HercGUI into a directory
ex: C:\Prog\HercGUI\HercGUI-1.11.1.5265
The directory name will be later configured into the batch file: subdosvs.bat
-
Run the HercPrt Windows install:
HercPrt_1.1.0.545_x86_std_setup.exe   (for Windows 32 bits)
or
HercPrt_1.1.0.545_x64_std_setup.exe   (for Windows 64 bits)
That will install HercPrt with all the files required for it.
By default, HercPrt is installed in the Program Files directory.
ex: C:\Program Files\SoftDevLabs\HercPrt
The directory name will be later configured into the batch file: txt2pdf.bat
-
Unzip the run time files dosvs5pack-v1r0m1-run.zip into a directory
ex: C:\@370\dosvs5pack-v1r0m1\run   (the run subdirectory is extracted from the zip file)
-
Unzip the support files dosvs5pack-v1r0m1-support.zip into a directory
ex: C:\@370\dosvs5pack-v1r0m1\support   (the support subdirectory is extracted from the zip file)
-
(Optional) Unzip the useful-ref files dosvs5pack-v1r0m1-useful-ref.zip into a directory
ex: C:\@370\dosvs5pack-v1r0m1\useful-ref   (the useful-ref subdirectory is extracted from the zip file)
- Configure subdosvs.bat and create a SendTo shortcut
Go to the ../run/scripts/ directory and edit the subdosvs.bat
change the line starting with: set subcmd=
to point to the directory where HercGUI is installed.
ex.: set subcmd="C:\Prog\HercGUI\HercGUI-1.11.1.5265\HercRdr.exe"
and save the file.
Right Click on the file and create a shortcut for it.
Rename the shortcut file as @subdosvs and copy it in the SendTo directory
  - WindowsXP - C:\Documents and Settings\[your Windows account]\SendTo
  - Windows7 - C:\Users\[your Windows account]\SendTo
  (on recent Windows systems, you need to change the permissions)
  (you can change the icons of the shortcut is you like)
- Configure txt2pdf.bat and create a SendTo shortcut
Go to the ../run/scripts/ directory and edit the txt2pdf.bat
change the line starting with: set subcmd=
to point to the directory where HercPrt is installed.
ex.: set subcmd="C:\Program Files\SoftDevLabs\HercPrt\txt2pdf32.exe"
and save the file.
Specify txt2pdf64.exe on 64 bit Windows.
Change the other variables according to your need.
Right Click on the file and create a shortcut for it.
Rename the shortcut file as @txt2pdf and copy it in the SendTo directory
  - WindowsXP - C:\Documents and Settings\[your Windows account]\SendTo
  - Windows7 - C:\Users\[your Windows account]\SendTo
  (on recent Windows systems, you need to change the permissions)
  (you can change the icons of the shortcut is you like)
- Configure HercPrt
Go to the directory where HercPrt is installed and select HercPrt32.exe
(select HercPrt64.exe on 64 bit Windows).
Right Click on the file and create a shortcut for it.
(on Windows Server 2008 R2 64 bit, you need to specify: Run as administrator).
Place the shortcut at the most convenient location for you.
Double-Click (open) the HercPrt program and set your configuration.
- Printer ID: [any name you choose]
- IP Address: [enter your IP address or use 127.0.0.1 when on the same computer]
- Port Number: 1403 [match the port in the Hercules configuration file]
- Control File: C:\Program Files\SoftDevLabs\HercPrt\dosvsr34.ini [provided ini file]
(if you want to tailor this file copy the file under another name first)
- Spooler Dir: C:\@370\dosvs5pack-v1r0m1\run\x_output\ [or any directory you choose]
- You may want to automatically reconnect when DOS/VS goes through multiple IPL
Part 4: Operations and Support
Return to Top
If you enconter the following error when launching Hercules
Application failed to Initialise properly (0xc0150002)
Then you need to install Microsoft VC++ redistributables.
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update
-- and/or --
Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update
Here are the steps to follow to IPL (start) DOS/VS
- Open a command prompt and go to the "run" directory
- open a command prompt
- cd c:\@370\dosvs5pack-v1r0m1\run
- Choose which Hercules to use, choices are:
use-h390w32 | use-h390w64 | use-h380w32
- Choose the console type: dosvs3215.bat or dosvs3277.bat
With dosvs3215, the startup commands are automatically supplied
from the file "hercules.rc".
- dosvs3215
- (wait until DOS/VS is completely started)
With dosvs3277, you need to enter the startup commands
until I find a way to script them with the 3270 emulator
- dosvs3277
- (the following commands are at the 3270 emulator window)
-   -> PRESS ENTER (twice)
- 0I03A SPECIFY SUPERVISOR NAME
-   -> $$a$supt
-   -> PRESS ENTER (a second time)
- 0I10A GIVE IPL CONTROL COMMANDS
-   -> set
- 0I71I READ DEVICE TYPE FOR SYSLOG INSERTED IN SYSLOG PUB
-   -> dpd
- BG 1T00A WARM START COPY OF SVA FOUND
-   -> keep
- BG 1I00A READY FOR COMMUNICATIONS
-   -> stop
-   -> start f1
-   -> assgn sysin,sysres
- F1 1T20I SYSIN HAS BEEN ASSIGNED TO X'360'
-   -> PRESS ENTER
- (multiple messages ...)
- F1 1Q12I POWER/VS INITIATION COMPLETED
-   -> assgn sysin,reader     (one time each for F2, F4, F3 and BG)
-   -> assgn sysin,reader     (one time each for F2, F4, F3 and BG)
-   -> assgn sysin,reader     (one time each for F2, F4, F3 and BG)
-   -> assgn sysin,reader     (one time each for F2, F4, F3 and BG)
- xx 1T20I SYSIN   HAS BEEN ASSIGNED TO X'00C'
-   -> PRESS ENTER         (one time each for F2, F4, F3 and BG)
- xx 1T20I SYSIN   HAS BEEN ASSIGNED TO X'00C'
-   -> PRESS ENTER         (one time each for F2, F4, F3 and BG)
- xx 1T20I SYSIN   HAS BEEN ASSIGNED TO X'00C'
-   -> PRESS ENTER         (one time each for F2, F4, F3 and BG)
- xx 1T20I SYSIN   HAS BEEN ASSIGNED TO X'00C'
-   -> PRESS ENTER         (one time each for F2, F4, F3 and BG)
- F1 1Q34I     xx WAITING FOR WORK
-   -> r rdr,*xxinit       (release jobs in the reader queue)
-  
- (at this point DOS/VS and POWER/VS are up and running)
- Shutdown POWER/VS (the DOS/VS spooler)
(These commands are for the 3277 console; in 3125 mode prefix them with "/"
-   -> pend
- F1 1Q21I POWER/VS HAS BEEN TERMINATED
- F1 1I00A READY FOR COMMUNICATIONS
-   -> /&
- F2 1I00A READY FOR COMMUNICATIONS
-   -> unbatch
- F4 1I00A READY FOR COMMUNICATIONS
-   -> unbatch
- F3 1I00A READY FOR COMMUNICATIONS
-   -> unbatch
- BG 1I00A READY FOR COMMUNICATIONS
-   -> stop       (unbatch is invalid for the BG partition)
- F1 EOJ POWERV ... DATE ...
-   -> unbatch
- (at this point the system is down, you can type "exit" in the Hercules window
Support Topics:
- To submit your JCL to DOS/VS
Using the Windows Explorer, select your job file to submit (ex.:hellojob.pwrjob)
and right-click,
then use the SendTo menu @subdosvs to submit
the file to DOS/VS.
- Adding a dasd (disk device)
One thing you may want to do is to add another disk to your system:
- First: create a disk file with the Hercules utility > dasdinit
see the following script in the scripts directory > dasdinit-user01.bat
- Second change the Hercules configuration files:
The configuration files in the run directory are overwritten at start-up time.
You need to update the four configurations files in the following directories:
1. s370conf
2. s380conf
The following 3350 addresses are configured for your use: x'440' to x'447'
ex: add the following statement:
0440 3350 .\dasd\USER01.3350.CCKD ro sf=.\dasd\Shadows/USER01_SF-
- Third: place a DOS/VS VTOC -- see JCL in file jcl-util\user01.initdisk
- Fourth: create a VSAM User catalog -- see JCL in file jcl-vsam\vsamdefu.user01
- Fifth: create a VSAM Space -- see JCL in file jcl-vsam\vsamdefs.user01
- List the VTOC -- see JCL in file jcl-util\lvtoc-user01.dosvsjcl
- (continue to work with your own defined volume)
- A few commands that you can use:
- POWER: d all
Command to list all the jobs in all the queues: rdr, pun, lst
- POWER: r rdr,*xxinit
release all the jobs starting with xxinit
- POWER: r rdr,pausef2
release the job pausef2 so that the operator can work with F2
- POWER: l lst,*xxinit
delete all lst queue entries starting with xxinit
- POWER: d t
display date, time, pages fixes and number of tasks
- POWER: d a
list the active power tasks
- POWER: g 00E
start printing after POWER has requested a printer setup
- POWER: p 02E
stop the LST task(printing) for printer x'02E'
- POWER: s lst,02E
start a LST task (printing) using printer x'02E'
- POWER: a rdr,pausebg,disp=k
change the disposition of job pausebg (equivalent to r)
- POWER: pend
request POWER/VS to perform a shutdown
- DOS/VS AR: map
display the storage mapping of the partition and the SVA
- DOS/VS AR: prty
display/change the relative priority of the partitions
- DOS/VS 3277 Console: d
goes back and display the previous console messages - all partitions
- DOS/VS 3277 Console: d l,bg
goes back and display the previous console messages - BG partition
- DOS/VS 3277 Console: d l,f and d l,b
with d command, change direction of redisplay
- DOS/VS 3277 Console: d e
end the messages redisplay and return to normal console operations
- DOS/VS inside partition: listio all
display assignments for all partitions
- TCP/IP Port for the console: using the port 3277 instead of default
- TCP/IP Port for the reader: using the port 3505
- TCP/IP Port for the printer: using the port 1403
- There is only one set of workfiles defined in the system Standard Labels.
You can only do one compile at a time unless you allocate different workfiles.
Probably a good idea to do compiles/assemblies in one partition only: BG
The COBOL compiler cannot use 3350 workfiles, you need to add different disks.
- Supervisor sysgen
8 MB virtual size has been allocated to BG so that you that you can increase foreground alloc as needed
Part 5: Tips: EBCDIC editor, Printing without HercPrt, ...
Return to Top
-
Sometimes, it is usefull to be able to work with files using EBCDIC
encoding on Windows.
At this time, I am using a shareware tool called: EditPlus
I am still trying to locate a good hexadecimal editor. Send me your suggestions.
To work with zip files, I am using the "free" Windows version of jZip.
When your version of the Hercules mainframe emulator does not support
sockdev for printing, here are a few tips on getting your printout.
Basically, I suggest to use the FNO= on the Power * $$ LST card
in combination with the Hercules console command: devinit
Here is a simple example:
-
To force a "form" change, put in a "* $$ LST CLASS=A,FNO=1111,..."
the FNO has to be different from the last form printed:
-
Every time, Power prints, it checks for a "form" change,
the operator will be prompted with the message:
F1 1Q40A   ON 00E FORMS 1111 NEEDED FOR HELLOJOB ...
-
At the Hercules console you can use the "devinit" command to give the output file name.
devinit 00e x_output/hellojob1.txt crlf
-
At the DOS/VS console use the "g 00e" command to start printing
g 00e
-
At the Hercules console you can use the "devinit" command to close the output file
devinit 00e x_output/anyfile.txt crlf
-
Using the Windows Explorer, select your output file hellojob1.txt and right-click,
then use the SendTo menu @txt2pdf to create a pdf file hellojob1.pdf
Part 6: Future Plans and Wish List
Return to Top
- GCC C compiler ... pre-requisite is s/380 architecture and 31-bit support
DOS/VS IPL with main storage =16MB or greater get stuck in a loop.
- Single level storage -- turn off DOS/VS paging
- COBOL applications using VSAM and SORT
- COBOL compiler ability to use workfiles on 3350
- Documentation and support files to run with VM/370 & VM/380
- Documentation and support files for running inside Linux
- A DOS/VS based 3270 editor (like VSEDIT) to maintain library and submit jobs
- Some kind of online transaction monitor
Send me your suggestions.