|
Thank you Scott for your comments as well as Allen and Adam and the others. As a result, I have resolved my issue. I ended up adding double quotes at the end of the object name variable (&OBJ) at the RPGLE program level. Remember that the file name was 'Copy of DETAILDATA.txt'. Appending the double quotes will happen now whenever I send the &OBJ parameter to the CLP. Then, on the CLP, I prepare the system path with double quotes at the BEGINNING of the path variable (&SYSPATH). So, the command looks something like this: CHGVAR VAR(&SYSPATH) VALUE('"\\' *CAT &SYSTEM *TCAT + '\ROOT\TEST\' *CAT &OBJ) The variable &SYSTEM is the current system name. As a result, the content of the path is: "\\TT400\ROOT\TEST\Copy of DETAILDATA.txt" This is precisely what was needed in order to have a successful execution of the STRPCCMD command, launching the associated default program to it, which is NOTEPAD in this case. Thanks again! Peter Vidal PALL Corporation / SR Programmer Analyst, IT Development Group 10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111 http://www.pall.com "When you really trust someone, you have to be okay with not understanding some things." Real Live Preacher, Real Live Preacher weblog, 07-08-04
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.