Hello, Good morning!!!!.-
I developed a process in cobol that does the following:
1 - Send a file from the spool, directly to the IFS (without going through an intermediate PF file)
CPYSPLF FILE(GLIMPREDI4) TOFILE(*TOSTMF) JOB(969000/user/QPADEV0046) TOSTMF('/FileRepository/SSIS/487/APP/output/BOLETIN.TXT') WSCST(*none) STMFOPT(*REPLACE)
and depending on the WSCST parameter, it generates a TXT or a PDF
2 - I verified the size of the file that was generated in the IFS, if it exceeds 3MB I zip the file (with a CL we execute the command through the QSHELL).
JAR cvfM /FileRepository/SSIS/487/APP/output/BOLETIN.TXT.ZIP
/FileRepository/SSIS/487/APP/output/BOLETIN.TXT
3 - Finally, the process sends an email with the attached file (.TXT/.PDF or ZIP), as long as the file size does not exceed 3MB.-
All development is done in cobol for AS400 (IBM i 7.3).-
The problem I have is that when I unzip the file on a Windows PC, it brings me "garbage".
I have other processes that send emails with attached ZIP files (source TXT file) and when I unzip them they are read correctly.-
At first I thought it was the CCSID of the file that was different from that of the ZIP, but in the cases where they are read correctly, the CCSIDs are different.-
Can someone guide me on where to look???
------------------------------
Agustín Allende Gasparo
------------------------------