todsn "missing option"

Discussion of the Co:Z Toolkit Dataset Pipes utilities
Post Reply
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

todsn "missing option"

Post by JohnMcKown »

The fromdsn allows me to pull output from a z/OS batch to stdout rather easily using the -ssh parameter and -jes.j<stuff> . What I cannot easily do is use todsn to submit my jcl. I'm stuck using ftp or sftp. What I'd like might be: todsn -ssh user@ip -intrdr <my.jcl or

cat jobcard.jcl assemble.jcl source.asm eof.jcl | todsn -ssh user@ip -intrdr

just a thought. Same with lsjes. That works great from a UNIX shell. But not via a -ssh type option:

lsjes -ssh user@ip -s o

to display my output queue would be nice.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: todsn "missing option"

Post by dovetail »

You can submit via todsn using this:

Code: Select all

todsn -ssh user@zos.myco.com -x 'sysout(a) writer(intrdr) recfm(f) lrecl(80)'
The cozclient command can be used to wrap arbitrary z/OS shell commands, for example:

Code: Select all

cozclient -ssh user@host lsjes -s o 
Also, since the "todsn" command won't return the JES jobid when it writes to the internal reader, you might try remotly using the z/OS submit command:

Code: Select all

cat jcl | cozclient -it user@host submit -j
BTW: there isn't a man page yet for cozclient, but some help is available by typing just the command name

Code: Select all

> cozclient
usage: cozclient [-i t|b|n ] [-o t|b|n] [-e t|b|s]
               [-sock | -ssh ssh-opt* user@host] 
               command [command-options*]
Note:
  -sock indicates to use a socket connection command via CoZLauncher
   -ssh indicates that an ssh connection should be used to run command
   -i/-o/-e indicates handling of stdin/stdout/stderr, t=text, b=binary,n=none,s=redirect stderr to server
   defaults are -in -ot and -et (if -ssh) or -es (if -sock)
Post Reply