# ADACMP whose input is a txt file from mainframe

**URL:** <https://techcommunity.softwareag.com/t/adacmp-whose-input-is-a-txt-file-from-mainframe/93092>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [March 19, 2010, 7:57pm UTC](https://techcommunity.softwareag.com/t/adacmp-whose-input-is-a-txt-file-from-mainframe/93092 "2010-03-19T19:57:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ana\_Paula](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Ana\_Paula](https://techcommunity.softwareag.com/u/Ana_Paula)\
**Post date:** [March 19, 2010, 7:57pm UTC](https://techcommunity.softwareag.com/t/adacmp-whose-input-is-a-txt-file-from-mainframe/93092/1 "2010-03-19T19:57:12Z")

</div>

I am working on ADABAS 6.1.7 on Open Systems. I want to make a load on a file whose input is a text file originated on mainframe.  
It has 120 characters of lenght, all alphanumeric, without separator between the fields and I use newline separator to new register.  
I´m having a problem on compress. I tried see the error with ADAERR but I don’t get read the file CMPERR with ADAERR. The ADAERR ask for ERRIN file, that not exists.

Here is the .prm file

fdt  
max\_decompressed\_size=256K  
single\_file  
null\_value  
source\_architecture=(EBCDIC, IBM\_370\_FLOATING, HIGH\_ORDER\_BYTE\_FIRST)  
record\_structure=NEWLINE\_SEPARATOR

Here is the input file (some registers)

ZZZ99A1RCC00140409SUPORTE COD300409000000ICCF ORIGINAL BACK-UP #5.FEIRA#  
SAD01AX0CC00150508VIBAMAR ADM280508000000CAD SAD FASE 01 #MAIO/2008# ORIGINAL

Does someone have experienced something like this?  
[ADACMP-output.txt](https://techcommunity.softwareag.com/uploads/short-url/gpb7YL6nSmVVRkPjoyIwyGXdwCt.txt) (1.26 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [March 24, 2010, 3:41pm UTC](https://techcommunity.softwareag.com/t/adacmp-whose-input-is-a-txt-file-from-mainframe/93092/2 "2010-03-24T15:41:09Z")

</div>

Which way did you transfer the data from mainframe? If it is a text file, then the file may have already been converted to ASCII. In this case you must no longer specify SOURCE\_ARCHITECTURE=EBCDIC. The recommended way for processing mainframe data is using FTP with the site rdw option as described for the ADACMP RECORD\_STRUCTURE parameter.

Regards,  
Wolfgang

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:58pm UTC](https://techcommunity.softwareag.com/t/adacmp-whose-input-is-a-txt-file-from-mainframe/93092/3 "2021-04-02T14:58:13Z")

</div>


