STRPCO in Batch

100 pts.
Tags:
iSeries application development tools
iSeries programming commands
STRPCCMD
STRPCO
Is it possible to run STRPCO & STRPCCMD from a program running in batch?



Software/Hardware used:
iSeries / AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can not use either of these commands in batch.

=======================================================

First, the commands can’t be executed in batch. Use DSPCMD to see “Where allowed to run”.

Second, there is no System i Access connection for the communication with the PC to run across. How could the commands possibly know where they’re supposed to connect to?

If you need to run some command on some PC, you need to know the address of the PC. Use the RUNRMTCMD command to open the connection. An rexec() service must be available on the PC to accept the connection. The Remote Command service can be installed on PCs out of the System i Access product or other rexec() servers can be located through internet searches.

Tom

Discuss This Question: 3  Replies

 
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
  • Teandy
    Use DSPCMD to see "Where allowed to run". Actually, when I use the DSPCMD command on the STRPCO and STRPCCMD commands om my V5R4 box you get the screen below, which does not tell you where the commands are allowed to run. Display Command Information Command . . . . . . . : STRPCO Library . . . . . . . : QSYS Target command . . . . . . . . . . . . : STRPCO Library . . . . . . . . . . . . . . : QIWS Text . . . . . . . . . . . . . . . . . : Start iSeries Access Organizer Current proxy chain . . . . . . . . . : QSYS/STRPCO QIWS/STRPCO Bottom Press Enter to continue. F3=Exit F12=Cancel (C) COPYRIGHT IBM CORP. 1980, 2005.
    5,860 pointsBadges:
    report
  • TomLiotta
    V6R1 introduces "proxy" commands. These are like symbolic links that point to the "real" commands. Instead of using CRTDUPOBJ to duplicate a command from a product library into QSYS, a proxy version is created in QSYS. In this case, the proxy chain shows that the real command is QIWS/STRPCO. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Sorry... I just realized I wrote V6R1. Proxy commands were introduced in V5R4. 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