× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi George

I don't suppose the RPG pgm is updating the file that the CL copies to QNTC ? Could this mean that the last record in the file remains locked from the last update operation before the copy is commenced ?

Regards
Evan Harris

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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.