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

STRPCCMD 123 chars !!

112 views
Skip to first unread message

siopold

unread,
Jun 16, 2004, 3:06:22 PM6/16/04
to
I have been using STRPCCMD for opening word/excel/html documents directly
from my AS400 for quite a while now and it all works quite nicely. I have
had issues with the 123 character command length but, up to now, have been
able to get around this by using shorter dos names etc. However the paths
are becoming longer and as I now wish to pass parameters directly to HTML
for screen ouput I have hit the limit of 123. How can I get around this?
RunRmtCmd is not an option as we use Rumba not Client Access. I have read
something about a JAVA command program that could be used to replace it. It
seemed to suggest that anyone needing 400 to PC access would require a JDK
on their PC, this is not an option. I would like something as simple and
easy as STRPCCMD but with the facility to process much larger strings/paths.
I am an RPG AS400 person who knows a little about HTML. I know very little
about the programming of JAVA.
I am aware of the EXTPROC facility within RPG could this be a key to the
answer. I suppose what I am essentially after is the facility to use an
equivalent to HTML's Link <HREF> as this is what I use STRPCCMD for.
Any help would be greatly appreciated. I have had a look on the web but not
been able to get much help.

Regards


jb

unread,
Jun 17, 2004, 5:11:35 AM6/17/04
to
"siopold" <decc...@hotmail.com> wrote in message
news:ip4Ac.77844$B63....@doctor.cableinet.net...

Assuming you can use the shared folders on the AS400 you could create a
*.bat file on the 400 containing the required commands with more than 123
chars & using the existing STRPCCMD get the pc to execute the .bat file you
just created. I expect this will require a bit of housekeeping since each
user will need their own file but it may work if you have the last line in
the batch file clear the program itself.
Alternately send many STRPCCMD's each of which does an echo "part of the
command" >> newfile.bat then execute the newfile.bat :-)

--
Jonathan Bailey.


0 new messages