• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Getting the data from a JAVA program displayed on a Shell..

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am as RPG CLP Programmer..

I am calling a JAVA class from a cl program with three parameters. And the JAVA program gives me the three parameters back and include a fourth one....I need this fourth parameter back in the CLP program not on display...

You I included a fourth parameter &PARM4 to see if a get the displayed data back in the program but does not work...

Can any one help..

This is my call from within the CL program:
/*SET NEW JOB ENVIRONMENT VARIABLES */

ADDENVVAR ENVVAR(CLASSPATH) +
VALUE('/QOpenSys/GeneraPinBlock2') +
REPLACE(*YES)
ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE(Y)


/*RUN JAVA COMMAND WITH PARAMETERS */

JAVA CLASS(GeneraPinBlock2) +
PARM(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +
XXXXXXXXXXXXXXXX XXXX &PARM4) +
CLASSPATH('/QOpenSys/GeneraPinBlock2') +
CHKPATH(*IGNORE) OPTIMIZE(*INTERPRET) +
INTERPRET(*YES)

on Display after run:
Java Shell Display

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX
XXXX
XXXXXXXXXXXXXXXX <= I need this data back in the CLP program
Java program completed






 
Well THAT's new! Comfort me, reliable tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic