STRPCCMD – How to avoid black DOS screen popup

2505 pts.
Tags:
.CSV files
CL Program
STRPCCMD
I have a STRPCCMD command in my CL program to open an IFS folder which has the .CSV files. 

STRPCCMD PAUSE(*NO) PCCMD(''''start " " "'+%trim(P@SYSNAME)+%xlate('/':'':DFTPATH)+'"'')' 

P@Sysname has the system name. I can see a popup DOS window but getting message the path not found. I am able to see the path and the .CSV files through WRKLNK command. In iSeries navigator, I can see the root folder is shared. Is it possible to avoid the black DOS screen popup because of the Start command?


Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Since neither %trim() nor %xlate() is valid in a CL program, it won't matter if you get rid of the pop-up. (Unless you don't actually have a CL program, but a RPG program.)   For the pop-up, you should ignore it. If you study the START command (and other DOS functions), you can learn ways to reduce the extra activity. But you should not eliminate it.   What you're asking for is a way for an AS/400 programmer to cause programs to run on a user's PC under the user's authority without anyone (but you) to know it's happening. The PC is going to resist that. It's a highly insecure function.   Describing how it might be done in a public forum might not be a good idea.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following