Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

STRPCCMD PCCMD(ANY) PAUSE(*YES)

196 views
Skip to first unread message

Jim Neece

unread,
Mar 26, 2010, 11:55:33 AM3/26/10
to
Hi,
Can anyone tell me what the "pause" is supposed to do the manuals are vague.
I assumed that the called pc program would start to run and then the iseries
would continue on to the next statement. I have a program that runs a pc
program that has no gui interface. When I run the cl progam that performs
the strpccmd the program interactively, the input is inhibited(x on the
bottom of the screen) indefinately. However, if i go to another I session
and come back the process completes and back to the menu.
In the cl program, I need to know when the called process finishes, so prior
to the strpccmd, i write a small file to the ifs. the called visual basic
program performs some processing and then deletes the small file in the ifs.
following the strpccmd the program loops until it does not find the small
file and then returns to the menu. In testing, we have found that if we
insert a vb msgbox in the visual basic program as the last thing to perform
before ending the vb program , the program works as we expected.

Thanks for your help in advance.


trans am kid

unread,
Mar 26, 2010, 3:09:46 PM3/26/10
to
The purpose of pause is that say you are running along, you issue the
strpccmd and it calls a dos bat and with pause Yes it will wait until
the bat closes up before going on. It works this way with iaccess
(client access for i). However at times it will get "hung" in that you
have to click on the screen.

Of course the dos bat should probably have a start command in it, and
with whatever it needs to close up.

Some tn5250 emulators do not support the strpccmd and others do not
support it properly.

I write some c# programs and do things (windowless dot net) but I
always call them from a bat and I make sure that I have cmd and /c in
there also:

STRPCCMD ('CMD /C C:\BGCOMBINE.BAT')

my bat will do a START c:\mycsharp.exe (with any command line
arguments)

hope this helps.

chris

JTF

unread,
Mar 26, 2010, 4:21:10 PM3/26/10
to
On Mar 26, 11:55 am, "Jim Neece" <jne...@nationalticket.com> wrote:

You may want the pause if your pc command creates a file and the next
step is to push that file to the iSeries....If you didn't pause, your
next step would fail if the file doesn't exist yet. If you just want
to kick an application off, no pause needed.

captain...@gmail.com

unread,
Dec 15, 2017, 3:13:39 PM12/15/17
to
anyone get this resolved. Having the same issue
0 new messages