// JCLLIB ORDER=&SYSUID..SSZ.SRVR542.SAMPLIB
//*
//TUNNEL1 EXEC SSZP
//SYSTSIN DD *
%SSZRSSH -S -f +
-oPidfile=/tmp/my_ssh2.pid +
-R 2345:localhost:2345 +
-R 2346:localhost:2346 +
-L 3456:localhost:3456 +
-L 3457:localhost:3457 +
username@remote_db_server
//*
//DBPROC EXEC DBPROC,
// SERVER=LOCALHOST,
// ACTION=REPL
//*
//SSH2STOP EXEC PGM=BPXBATCH,
// REGION=0M,
// TIME=100,
// PARM='SH kill `cat /tmp/my_ssh2.pid`'
//STDOUT DD PATH='/tmp/&SYSUID.-SSH2STOP.out',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=(SIRUSR,SIWUSR)
//STDERR DD PATH='/tmp/&SYSUID.-SSH2STOP.err',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=(SIRUSR,SIWUSR)
/*
|