Problem using java with cobol
- From: "awosy" <wardmaenhout@xxxxxxxxx>
- Date: Fri, 28 Apr 2006 13:21:40 +0200
Hey
I need to pass parameter to a cobol program with I start from a java program.
I was able to run an cobol program that doesn't use parameters already but i'm stuck now
this is my java code i use to run a cobol program that doesn't need parameters
public class TestRunCobol
{
private static ShowText txtProg;
public static void main(String[] args)
{
txtProg = new ShowText();
txtProg.run();
}
}
And this is the cobol program to which i want to pass 1 parameter (String value)
IDENTIFICATION DIVISION.
PROGRAM-ID. ShowText.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 break pic x.
LINKAGE SECTION.
01 param1 object reference "java.lang.String".
PROCEDURE DIVISION USING by value param1.
Main.
Display "Parameter passed: " param1
accept break from console
Stop run.
can somebody tell me what i have to do in my java code to pass the String value?
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
.
- Prev by Date: Re: US Presidents; an outside view WAS: Any comments? (Evolution - was Answers to Pete)
- Next by Date: Re: US Presidents; an outside view WAS: Any comments? (Evolution - was Answers to Pete)
- Previous by thread: Beautify code
- Next by thread: "Philosphical" question on "succesful" file status testing
- Index(es):
Relevant Pages
|