Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java + AS400 API

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
has someone used the QUSRTVUS AS400 API ?
If yes, can you post a sample of code ?
I can't read then receiver variable.
Thank in advance.
Giuseppe.
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can't say I have used the retrieve userspace API from java, and also I'm not sure of the way you're trying to invoke the cmd.
(I'm assuming since your posting this here, you want a java solution)
I was just reading through IBM's Java Toolbox, access classes API's:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzahh/uspace.htm#uspex1
And saw that there is a UserSpace class.
Have you tried something similar to this:

I am nowhere near an AS400 these days so can't try out the code.
Another forum you might try is:
http://www.ignite400.org/html/forum.htm
Anyway, good luck.
James.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic