z/OS OMVS to JES

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
astallerk
Posts: 4
Joined: Tue Dec 15, 2015 12:53 pm

z/OS OMVS to JES

Post by astallerk »

Attempting to SFTP a z/OS OMVS dataset to JES.

/users/dsdvcml/testjes
# cat testjes
//IEFBR14 JOB (D9505,99999),'A STALLER',CLASS=W,
//* TYPRUN=SCAN,
// MSGCLASS=X,NOTIFY=&SYSUID
//* NJE TEST
//STEP1 EXEC PGM=IEFBR14
#

cozsftp dsdvcml@host
ls /+mode=text
cd //-jes.intrdr
put jesttest myjob
quit

yields:
$HASP125 DSDVCML1 INTRDR SKIPPING FOR JOB CARD FROM STC03649
DSDVCML1

Not unexpected since the existing text would be translated to ASCII.

cozsftp dsdvcml@host
cd //-jes.intrdr
put jestest myjob
quit

yields

$HASP100 IEFBR14 ON INTRDR A STALLER FROM STC03757
DSDVCML2
$HASP105 IEFBR14 -- EXPECTED CONTINUATION NOT RECEIVED
$HASP119 IEFBR14 DELETED - MISSING CONTINUATION, RC=3
IEFC452I IEFBR14 - JOB NOT RUN - JCL ERROR 358

with the following in the JES JCL file:
//IEFBR14 JOB (D9505,99999),'A STALLER',CLASS=W, //* TYPRUN=SCAN, JOB03814
MSGCLASS=X,NOTIFY=&SYSUID //* NJE TEST //STEP1 EXEC PGM=IEFBR14

tried various values of JESRECFm to no avail.

Any ideas?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: z/OS OMVS to JES

Post by dovetail »

The problem is that since you are using both the Co:Z SFTP client AND the Co:Z SFTP server, you have to set options on both sides.

This:
ls /+mode=text

sets the option for the server.

You also need to set the client option, which defaults to binary:

lzopts mode=text
Post Reply