converting quote site filetype=jes to SFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
lucky
Posts: 2
Joined: Fri Mar 04, 2011 10:47 am

converting quote site filetype=jes to SFTP

Post by lucky »

Hi, I am trying to convert a FTP script which has "quote site filetype=jes" command to SFTP.

Am trying to sftp a jcl file to MVS from a unix box. and my error was:

Code: Select all


sftp> ls /+writer=jes
/+writer=jes
sftp> put /opt/fedexapps/abisdva3/abinitio/download/data/FedEx/serial/eprs/aplextract/main/jcl_dir/US_run_cust.jcl
Uploading /opt/fedexapps/abisdva3/abinitio/download/data/FedEx/serial/eprs/aplextract/main/jcl_dir/US_run_cust.jcl to //FTP0072/US_run_cust.jcl
Couldn't get handle: Failure
sftp>  get /+/error.log
Fetching /+/error.log to error.log
sftp> !cat error.log
Co:Z sftp-server version: 1.7.0 (5.0p1) 2010-06-07
Copyright (C) Dovetailed Technologies, LLC. 2008. All rights reserved.
ZosDataset[I]: Opening dataset FTP0072.US_RUN_CUST.JCL for write with options: new catalog
IKJ56231I FILE SYS00006 NOT ALLOCATED, SYSTEM OR INSTALLATION ERROR+
IKJ56231I TEXT UNIT X'0002' CONTAINS INVALID PARAMETER
DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x035C S99INFO=0x0002
DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS00006) reuse msg(2) da('FTP0072.US_RUN_CUST.JCL') new catalog"
ZosDataset[E]: Dataset FTP0072.US_RUN_CUST.JCL open error: EDC5000I No error occurred. (errno2=0xC4070044)
ZosDataset[E]:   last_op=604, error=0x5620062, msg=
IKJ56247I FILE SYS00006 NOT UNALLOCATED, IS NOT ALLOCATED
ZosPosixFile[I]: Closing file /SYSTEM/tmp/sftp-server.ftp0072.063.153352.14161.log - 758 bytes read, 758 bytes sent
ZosDataset[I]: Opening dataset FTP0072.US_RUN_CUST.JCL for write with options: new catalog
IKJ56231I FILE SYS00007 NOT ALLOCATED, SYSTEM OR INSTALLATION ERROR+
IKJ56231I TEXT UNIT X'0002' CONTAINS INVALID PARAMETER
DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x035C S99INFO=0x0002
DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS00007) reuse msg(2) da('FTP0072.US_RUN_CUST.JCL') new catalog"
ZosDataset[E]: Dataset FTP0072.US_RUN_CUST.JCL open error: EDC5000I No error occurred. (errno2=0xC4070044)
ZosDataset[E]:   last_op=604, error=0x5620062, msg=
IKJ56247I FILE SYS00007 NOT UNALLOCATED, IS NOT ALLOCATED
sftp> quit
lucky
Posts: 2
Joined: Fri Mar 04, 2011 10:47 am

Post by lucky »

I have tried with" ls /+writer=intrdr "

Code: Select all

sftp> ls /+writer=intrdr
/+writer=intrdr
sftp> put /opt/fedexapps/abisdva3/abinitio/download/data/FedEx/serial/eprs/aplextract/main/jcl_dir/US_run_cust.jcl
Uploading /opt/fedexapps/abisdva3/abinitio/download/data/FedEx/serial/eprs/aplextract/main/jcl_dir/US_run_cust.jcl to //FTP0072/US_run_cust.jcl
Couldn't get handle: Failure
sftp> get /+/error.log
Fetching /+/error.log to error.log
sftp> !cat error.log
Co:Z sftp-server version: 1.7.0 (5.0p1) 2010-06-07
Copyright (C) Dovetailed Technologies, LLC. 2008. All rights reserved.
ZosDataset[I]: Opening dataset FTP0072.US_RUN_CUST.JCL for write with options: new catalog
IKJ56231I FILE SYS00006 NOT ALLOCATED, SYSTEM OR INSTALLATION ERROR+
IKJ56231I TEXT UNIT X'0002' CONTAINS INVALID PARAMETER
DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x035C S99INFO=0x0002
DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS00006) reuse msg(2) da('FTP0072.US_RUN_CUST.JCL') new catalog"
ZosDataset[E]: Dataset FTP0072.US_RUN_CUST.JCL open error: EDC5000I No error occurred. (errno2=0xC4070044)
ZosDataset[E]:   last_op=604, error=0x5620062, msg=
IKJ56247I FILE SYS00006 NOT UNALLOCATED, IS NOT ALLOCATED
sftp>

BobC
Posts: 10
Joined: Fri Mar 04, 2011 9:57 am

Post by BobC »

I'm not sure this will help but this worked from linux to z/OS:
Connected to zos.
sftp> cd //-jes.intrdr
sftp> ls /+mode=text
/+mode=text
sftp> put JCL.txt BCOHGNR
Uploading JCL.txt to //-JES.INTRDR/BCOHGNR
JCL.txt 100% 195 0.2KB/s 00:00
sftp> quit
Post Reply