|
I'm a bit baffled by what is going on here. I have a small CL that copies a physical file member to a STMF, then copies that STMF to a PC file on a local NT server via QNTC. The relevant code is: CPYTOIMPF FROMFILE(*LIBL/ELPCCT) TOSTMF('/etc/CCT') MBROPT(*REPLACE) + RCDDLM(*LF) DTAFMT(*FIXED) CPY OBJ('/etc/CCT') TOOBJ('/QNTC/NEXSRV2/ftproot/BulkCCT/CCT_ELP') + TOCODEPAGE(*PCASCII) DTAFMT(*TEXT) Now, the problem is that when I run this CL from a command prompt, it works fine. However, when I call this CL from an RPG program, it copies all but the last line of the file, which is not good. FWIW, I have been calling the RPG and CL progs logged in under the same account, so same liblist, persmissions, etc. Can anyone shed some light on this for me?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.