Where are you invoking the Java compiler ....the job stream pres
Jags:

Where are you invoking the Java compiler ....the job stream presented ONLY 
copies your source to STDOUTL and STDERRL ...
No compiler is shown in this example....
 
Scott J Ford
 




________________________________
From: jagadishan perumal <jagadish...@gmail.com>
To: IBM-MAIN@bama.ua.edu
Sent: Fri, May 20, 2011 10:08:04 PM
Subject: java executables using batch

Hi,

I was trying to invoke a java executable file using the below batch but The
expected output was not recieved. The out out was expected to throw as
"HELLO WORLD" but there was no luck.

*My JCL :*

//A255209$ JOB MSGCLASS=X,MSGLEVEL=(1,1),CLASS=B,
//        REGION=5M,NOTIFY=&SYSUID
//*  -------------------------------------------------
//*  Run  java program
//*  -------------------------------------------------
//RUN EXEC PGM=BPXBATCH,
//        PARM='SH java -cp /proj2/jproj/path.classpath'
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDOUT DD PATH='/proj2/jproj/java.stdout',
//          PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//          PATHMODE=SIRWXU
//STDERR DD PATH='/proj2/jproj/java.stderr',
//          PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//          PATHMODE=SIRWXU
//STDENV DD *
PATH=/bin
JAVA_HOME=/usr/lpp/java1.5/J5.0_64
/*
//COPYOUT EXEC PGM=IKJEFT01,DYNAMNBR=300,COND=EVEN
//SYSTSPRT DD SYSOUT=*
//HFSOUT DD PATH='/proj2/jproj/java.stdout'
//HFSERR DD PATH='/proj2/jproj/java.stderr'
//STDOUTL DD SYSOUT=*,DCB=(RECFM=VB,LRECL=133,BLKSIZE=137)
//STDERRL DD SYSOUT=*,DCB=(RECFM=VB,LRECL=133,BLKSIZE=137)
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DATA,DLM='/>'
ocopy indd(HFSOUT) outdd(STDOUTL)
ocopy indd(HFSERR) outdd(STDERRL)
/>

*JESMSGLG :*

      J E S 2  J O B  L O G  --  S Y S T E M  Z O S B  --  N O D E  N
1


---- SATURDAY,  21 MAY 2011
----
IRR010I  USERID IBMUSER  IS ASSIGNED TO THIS
JOB.
ICH70001I IBMUSER  LAST ACCESS AT 07:22:18 ON SATURDAY, MAY 21,
2011
$HASP373 A255209$ STARTED - INIT 5    - CLASS B - SYS
ZOSB
IEF403I A255209$ - STARTED -
TIME=07.22.19
-                                              --TIMINGS
(MINS.)--            -
-STEPNAME PROCSTEP    RC  EXCP  CONN    TCB    SRB  CLOCK  SERV
WORKLOAD  P
-RUN                  00    66    14    .00    .00    .0    293
BATCH
-*OMVSEX              00    23      6    .00    .00    .0    67
BATCH
-*OMVSEX              01    144      4    .00    .00    .3    200
BATCH
-COPYOUT              00    68    31    .00    .00    .0    694
BATCH
IEF404I A255209$ - ENDED -
TIME=07.22.46
-A255209$ ENDED.  NAME-                    TOTAL TCB CPU TIME=    .00
TOTAL EL
$HASP395 A255209$
ENDED
ATISTICS
------
EXECUTION
DATE
2011 JOB EXECUTION DATE
  30 CARDS READ
126 SYSOUT PRINT RECORDS
  0 SYSOUT PUNCH RECORDS
  7 SYSOUT SPOOL KBYTES
0.46 MINUTES EXECUTION TIME


JESYSMSG :
ICH70001I IBMUSER  LAST ACCESS AT 07:22:18 ON SATURDAY, MAY 21,
2011
IEF236I ALLOC. FOR A255209$
RUN
IEF237I JES2 ALLOCATED TO
SYSPRINT
IEF237I JES2 ALLOCATED TO
SYSOUT
IGD103I SMS ALLOCATED TO DDNAME
STDOUT
IGD103I SMS ALLOCATED TO DDNAME
STDERR
IEF237I JES2 ALLOCATED TO
STDENV
IEF142I A255209$ RUN - STEP WAS EXECUTED - COND CODE
0000
IEF285I  IBMUSER.A255209$.JOB07223.D0000103.?
SYSOUT
IEF285I  IBMUSER.A255209$.JOB07223.D0000104.?
SYSOUT
IGD104I HFS FILE WAS RETAINED, DDNAME IS (STDOUT
)
FILENAME IS
(/proj2/jproj/java.stdout)
IGD104I HFS FILE WAS RETAINED, DDNAME IS (STDERR
)
FILENAME IS
(/proj2/jproj/java.stderr)
IEF285I  IBMUSER.A255209$.JOB07223.D0000101.?
SYSIN
IEF373I STEP/RUN    /START
2011141.0722
IEF374I STEP/RUN    /STOP  2011141.0722 CPU    0MIN 00.03SEC SRB    0MIN
00.00S
IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE
0000
IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE
0000
IEF373I STEP/*OMVSEX /START
2011141.0722
IEF374I STEP/*OMVSEX /STOP  2011141.0722 CPU    0MIN 00.01SEC SRB    0MIN
00.00S
IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE
0001
IEF373I STEP/*OMVSEX /START
2011141.0722
IEF374I STEP/*OMVSEX /STOP  2011141.0722 CPU    0MIN 00.02SEC SRB    0MIN
00.00S
IEF236I ALLOC. FOR A255209$
COPYOUT
IEF237I JES2 ALLOCATED TO
SYSTSPRT
IGD103I SMS ALLOCATED TO DDNAME
HFSOUT
IGD103I SMS ALLOCATED TO DDNAME
HFSERR
IEF237I JES2 ALLOCATED TO
STDOUTL
IEF237I JES2 ALLOCATED TO
STDERRL
IEF237I JES2 ALLOCATED TO
SYSPRINT
IEF237I JES2 ALLOCATED TO
SYSTSIN
IEF142I A255209$ COPYOUT - STEP WAS EXECUTED - COND CODE
0000
IEF285I  IBMUSER.A255209$.JOB07223.D0000105.?
SYSOUT
IGD104I HFS FILE WAS RETAINED, DDNAME IS (HFSOUT
)
FILENAME IS
(/proj2/jproj/java.stdout)
IGD104I HFS FILE WAS RETAINED, DDNAME IS (HFSERR
)
IGD104I HFS FILE WAS RETAINED, DDNAME IS (HFSERR
)
FILENAME IS
(/proj2/jproj/java.stderr)
IEF285I  IBMUSER.A255209$.JOB07223.D0000106.?
SYSOUT
IEF285I  IBMUSER.A255209$.JOB07223.D0000107.?
SYSOUT
IEF285I  IBMUSER.A255209$.JOB07223.D0000108.?
SYSOUT
IEF285I  IBMUSER.A255209$.JOB07223.D0000102.?
SYSIN
IEF373I STEP/COPYOUT /START
2011141.0722
IEF374I STEP/COPYOUT /STOP  2011141.0722 CPU    0MIN 00.08SEC SRB    0MIN
00.00S
IEF375I  JOB/A255209$/START
2011141.0722
IEF376I  JOB/A255209$/STOP  2011141.0722 CPU    0MIN 00.14SEC SRB    0MIN
00.00S

*SYSTSPRT :*

READY
ocopy indd(HFSOUT) outdd(STDOUTL)
READY
ocopy indd(HFSERR) outdd(STDERRL)
READY
END

*STDOUTL :*


Usage: java Ý-options¨ class Ýargs...¨
          (to execute a class)
  or  java Ý-jar¨ Ý-options¨ jarfile Ýargs...¨
          (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by :>
              set search path for application classes and resources
    -D<name>=<value>
              set a system property
    -verboseÝ:class|gc|jni¨
              enable verbose output
    -version  print product version
    -version:<value>
        require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
-jre-restrict-search | -no-jre-restrict-search
          include/exclude user private JREs in the version search
-agentlib:<libname>Ý=<options>¨
          load native agent library <libname>, e.g. -agentlib:hprof
          see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>Ý=<options>¨
          load native agent library by full pathname
-javaagent:<jarpath>Ý=<options>¨
          load Java programming language agent, see java.lang.instrument
-? -help  print this help message
-X        print help on non-standard options
-assert  print help on assert options


Could Anyone please throw some light on this issue. Our objective is to
deploy all the java developed codes in the mainframes. This was just the
initial phase of testing but it ended in failure. Could anyone please guide
or suggest me the right direction.

Regards,
jags

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to