We are testing cozsftp in batch mode. Getting a file from the UNIX server we get the following error:
Code: Select all
IEF236I ALLOC. FOR COZU2MHI RUNSFTP
IEF237I F747 ALLOCATED TO STEPLIB
IEF237I JES2 ALLOCATED TO STDIN
IGD100I F232 ALLOCATED TO DDNAME DOWNLOAD DATACLAS ( )
IEF237I JES2 ALLOCATED TO SYSOUT
IGD103I SMS ALLOCATED TO DDNAME SYS00001
IEC030I B37-04,IFG0554A,COZU2MHI,RUNSFTP,DOWNLOAD,F232,S0STSM,SYS6.ZOS.DIC.VALID
IGD104I Z225222.CNTL.DOC RETAINED, DDNAME=SYS00001
IEF285I Z225222.COZU2MHI.JOB00013.D0000102.? SYSOUT
IEF142I COZU2MHI RUNSFTP - STEP WAS EXECUTED - COND CODE 0001
IEF285I SYS1.COZ.LOADLIB KEPT
IEF285I VOL SER NOS= L1TE10.
IEF285I Z225222.COZU2MHI.JOB00013.D0000101.? SYSIN
IEF285I SYS6.ZOS.DIC.VALID CATALOGED
IEF285I VOL SER NOS= S0STSM.
IEF373I STEP/RUNSFTP /START 2011301.1314
IEF374I STEP/RUNSFTP /STOP 2011301.1323 CPU 0MIN 10.75SEC SRB 0MIN 03.89SEC VIRT 224K SYS 396K EXT 9536K SYS 10628K
IEF375I JOB/COZU2MHI/START 2011301.1314
IEF376I JOB/COZU2MHI/STOP 2011301.1323 CPU 0MIN 10.75SEC SRB 0MIN 03.89SEC
CoZBatch[N]: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights reserved.
CoZBatch[N]: version 1.10.0 2011-09-08
CoZBatch[I]: executing default progname="-/bin/sh"
+ cozsftp -b //'Z225222.CNTL.DOC(GETCOZ)' z225222@180.176.34.12
Co:Z SFTP version: 1.10.0 (5.0p1) 2011-09-08
Copyright (C) Dovetailed Technologies, LLC. 2011. All rights reserved.
cozsftp> ascii
ZosSettings[W]: Cannot change fixed option: 'mode'
?mode=text
cozsftp> get /temporal3-gfi/Rodo/Diciembre/Detalle/DiciembreD2003_VALID.txt //DD:DOWNLOAD
Fetching /temporal3-gfi/Rodo/Diciembre/Detalle/DiciembreD2003_VALID.txt to //DD:DOWNLOAD
ZosDataset[I]: Opening dataset DD:DOWNLOAD for write
DatasetHandler[E]: Dataset DD:DOWNLOAD write error: EDC5065I A write system error was detected. (errno2=0xC04A001D)
DatasetHandler[E]: last_op=151, error=0xB370004, msg=
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
ZosDataset[E]: dataset write error: seek not allowed
[90.244] Couldn't write to "//DD:DOWNLOAD": EDC5000I No error occurred. (errno2=0xC04A001D)
ZosDataset[I]: Closing dataset //DD:DOWNLOAD before completion - 5552865279 bytes received, 3594602 records written
ZosSmf119Record[W]: Error writing SMF type=953713672:0 - ; SMF recording disabled
CoZBatch[I]: returning rc=exitcode=1
I don't know why 5552865279 bytes are recieved when the real file size is 2038518423 bytes. Running the same JCL but using a smaller file to get, it completes OK, and in this case the file size match. It doesn't seem to be a space problem because there is enough disk space.
Code: Select all
Unit . . : 3390
Volume Data VTOC Data Free Space Tracks Cyls
Tracks . : 450,765 Tracks . : 150 Size . . : 102,925 6,830
%Used . : 77 %Used . . : 8 Largest . : 10,275 685
Trks/Cyls: 15 Free DSCBS: 6,938 Free
Extents . : 202
Code: Select all
//COZU2MHI JOB 1111,(1111),CLASS=A,
// MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
//RUNSFTP EXEC PGM=COZBATCH
//STEPLIB DD DSN=SYS1.COZ.LOADLIB,DISP=SHR
//STDIN DD *
set -x
cozsftp -b "//'Z225222.CNTL.DOC(GETCOZ)'" z225222@180.176.34.12
//DOWNLOAD DD DISP=(,CATLG),
// DSN=SYS6.ZOS.DIC.VALID,VOL=SER=S0STSM,
// UNIT=3390,SPACE=(CYL,(3000,100),RLSE)
Code: Select all
ascii
get /temporal3-gfi/Rodo/Diciembre/Detalle/DiciembreD2003_VALID.txt //DD:DOWNLOAD
Thanks in advance.