hercsub 192.168.1.102:3505 dummy.jcl

hercsub /tmp/hercrdr.00C dummy.jcl

Here is the Hercsub script:

============== hercsub ================

#!/usr/bin/perl

use Socket;

use IO::Socket::UNIX;

use IO::Socket::INET;

if (@ARGV < 1) {

print STDERR "Usage: hercsub socket_spec [job]\n";

exit 2;

}

my $spec = shift @ARGV;

my $sock;

if ($spec =~ m{^/}) {

$sock = IO::Socket::UNIX->new(Peer => $spec);

} else {

$sock = IO::Socket::INET->new(PeerAddr => $spec);

}

die "Failed to connect to socket $spec: $!\n" unless defined($sock);

while (<>) {

print $sock $_;

}

========== end of hercsub =============

Figure 354: The Hercsub Perl Script

15.3.2 Using the netcat program

The netcat (nc) program can also be used to submit files to a Hercules reader via TCP/IP. Install netcat
(which is useful for many other things as well) and use the following syntax:

nc –w1 localhost 1234 < dummy.jcl

For more information on the netcat program, type man nc from the Unix shell.

Appendix A: Supported DASD De
vice Types

The following tables show the supported DASD device types and models with their sizes. The symbol “[*]”
in the size column means that any size can be specified, else the size defaults to the first listed model.

CKD Devices

Devicetype-Model

Cylinders

Alternate Cylinders

IBM 2311

[*]

IBM 2311-1

200

2

IBM 2314

[*]

IBM 2314

200

3

IBM 3330

[*]

IBM 3330-1

404

7

IBM 3330-2

808

7

IBM 3330-11

808

7

IBM 3340

[*]

IBM 3340-1

348

1

IBM 3340-35

348

1

IBM 3340-2

696

2

IBM 3340-70

696

2

IBM 3350

[*]

IBM 3350-1

555

5

IBM 3375

[*]

IBM 3375-1

959

1

IBM 3380

[*]

IBM 3380-1

885

1

IBM 3380-A

885

1

IBM 3380-B

885

1

Previous Page Next Page