Try this...the java translations for [] will need to be fixed. One of the
problems of E-Mail and cut and paste. Also you will need to be at a level of
z/OS that supports SYSOUT for STDIN STDERR, or you could change those DDs to
use HFS files:
//COPY1 EXEC PGM=IKJEFT01,REGION=4M
//SYSPRINT DD SYSOUT=(,)
//INPUT DD DATA,DLM='%%'
class HelloWorld
{
public static void main (String argsݨ)
{
System.out.println("Hello Y'All!");
}
}
%%
//OUTPUT DD PATH='/tmp/HelloWorld.java',
// PATHOPTS=(OWRONLY,OCREAT),PATHMODE=(SIRWXU,SIRWXG),
// PATHDISP=(KEEP,DELETE)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INPUT) OUTDD(OUTPUT) TEXT
/*
//JESSTEP EXEC PGM=BPXBATCH,REGION=8M,
// PARM='sh javac /tmp/HelloWorld.java'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//JESSTEP EXEC PGM=BPXBATCH,REGION=8M,
// PARM='SH java /tmp/HelloWorld.class'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
Jon L. Veilleux
[EMAIL PROTECTED]
(860) 636-2683
-----Original Message-----
Hi All. Would anyone have a batch example of a JAVA compile and run of HELLO
WORLD (or anything simple) they would be willing to share with me or point me
to a manual I could find it in? Thanks once again all.
Bob Pelletier
-----------------------------------------
This e-mail may contain confidential or privileged information. If
you think you have received this e-mail in error, please advise the
sender by reply e-mail and then delete this e-mail immediately.
Thank you. Aetna
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html