Hi,
It is similar, but on Linux.
Does anyone have any experience in how to transfer from Adabas file on Mainframe to Adabas file on Linux?
I have been using the sequence below:
1º Option - using RDW
-
UNLOAD DECOMPRESS on MF;
-
FTP binary using RDW option on Windows machine;
-
WINZIP;
-
FTP binary to Linux machine;
-
UNZIP;
-
COMPRESS+LOAD using RDW option and EBCDIC
After some records added, an abend occurred. See below:
%ADACMP-I-STARTED, 16-JUL-2009 09:56:25, Version 5.1.4.01(04) (Linux 32Bit)
%ADACMP-I-DBON, database 241 accessed online
%ADACMP-W-ERROR, Field = RB, ISN = 208928, Offset = 6782
%ADACMP-E-IOSUBERR, IO subsystem error (20/32): Buffer too small for read
%ADACMP-I-IOCNT, 1094 IOs on dataset CMPDTA
%ADACMP-I-IOCNT, 1 IOs on dataset CMPERR
%ADACMP-I-IOCNT, 208929 IOs on dataset CMPIN
%ADACMP-I-IOCNT, 1 IOs on dataset ASSO
%ADACMP-I-ABORTED, 16-JUL-2009 09:57:03, elapsed time: 00:00:3
%ADAERR-I-STARTED, 16-JUL-2009 09:57:06, Version 5.1.4.01(04) (Linux 32Bit)
%ADAERR-F-ERROR, Field = RB, ISN = 208928, Offset = 6782
%ADAERR-F-ERR3, input record too short
%ADAERR-I-IOCNT, 1 IOs on dataset ERRIN
%ADAERR-I-TERMINATED, 16-JUL-2009 09:57:06, elapsed time: 00:00:00
2º Option - using cvt_fmt
-
UNLOAD DECOMPRESS on MF;
-
FTP binary on Windows machine;
-
WINZIP;
-
FTP binary to Linux machine;
-
UNZIP;
-
CVT_FMT -h -f xxx.dat yyyy.dat dbid fnr
After some records added, an abend occurred. See below:
Start converting File071.txt
already 278681 records converted
Error in cvt_fmt: mismatch between DATA and FDT detected
reason: input file incomplete
Doubts:
- Is there any limit to the use of the cvt_fmt? What I noticed: if the file is bigger than 2GB, both abend.
- Is there something wrong on the procedure to transfer the files from one machine to other? (mentioned above). It seems that the ftp is changing the content.
Additional information:
- The FDT is correct on both sides;
- When the file is not so big, less than 1 million of records, everything works fine; however, for greater values, an abend occurs. It could be a coincidence, but….
- It is necessary to transfer to Windows before, because the MF is not in the same site that the Linux machine;
- When the utility abends after processing some records, there is no magic number to the file be aborted;
- On every situation, it doesn’t matter what the record length is;
So, it seems that the solution would be to separate the huge files in several files, i.e., the solution would be: UNLOAD using starting by ISN and NUMREC; on Linux, the ADAMUP should be used to add the records.
Are these procedures correct? Does anyone have any other idea of how to solve it?
Thanks