sftp via psftp to JES internal reader

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
sschwie
Posts: 9
Joined: Wed Dec 03, 2008 3:53 pm

sftp via psftp to JES internal reader

Post by sschwie »

Is it possible to submit a job via psftp to the JES internal reader?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Thank you for asking - when I tested it I found that we had introduced a bug in the handling of SYSOUT-related keywords that currently prevents this from working. I've fixed the code, and hope to release it soon.

You will then be able to submit JCL into the internal reader by uploading a file to "SYSOUT" with writer=INTRDR.

For example:

Code: Select all

c:\>psftp kirk@zos
Using username "kirk".
kirk@zos's password:
Remote working directory is /u/dovetail/kirk
psftp> ls /+mode=text,sysout=a,writer=intrdr,recfm=fb,lrecl=80
Listing directory /+mode=text,sysout=a,writer=intrdr,recfm=fb,lrecl=80
 mode=text
 lrecl=80
 recfm=fb
 sysout=a
 writer=intrdr
psftp> put jcl.txt //SYSOUT
local:jcl.txt => remote://SYSOUT
psftp>
This same technique can also be used to print files via SFTP. Any of the "SYSOUT" related keywords listed here can be used to control your output:

http://dovetail.com/docs/sftp/using.htm ... ts_bpxwdyn

I'll post a response to this thread when the fix is available.
sschwie
Posts: 9
Joined: Wed Dec 03, 2008 3:53 pm

Post by sschwie »

Thanks. Any idea when we might see a fix?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

This has been fixed in the latest release (1.2.0).

Thanks again for reporting this problem.
Post Reply