×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




did you try running STRPCO first?

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi



Jerry Adams <Jerry@xxxxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
10/22/2010 09:15 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
"Midrange-L (midrange-l@xxxxxxxxxxxx)" <midrange-l@xxxxxxxxxxxx>
cc

Subject
STRPCCMD Suddenly Not Working






I thought I had figured this out yesterday. The CL below worked yesterday
(honestly), but this morning when re-testing nothing happens. Under debug
I can see that the variable gets set properly. I have double-checked that
the file exists with the same case as in the CL. The CL is intended to be
called from within an RPG IV program, but even as a stand-alone call it is
not working. The S:\ drive, by the way, is the shared drive on our
Windows (2003, I think) file server. I have tried replacing it with the
IP address, but same results - nada. I even tried creating and using a
standard DOS (8.3) file name - zilch. Any clues?

PGM
DCL VAR(&DOC) TYPE(*CHAR) LEN(128)

CHGVAR VAR(&DOC) +
VALUE('rundll32 shell32,ShellExec_RunDLL +
"S:\IT_AS400\Documentation\Procedures\+
Importing a System i File Into Excel.pdf"')
STRPCCMD PCCMD(&DOC) PAUSE(*NO)

ENDPGM

Jerry C. Adams
IBM System i Programmer/Analyst
Baeball is 90% mental. The other half is physical. - Yogi Berra
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.