Re: java executables using batch
In 642078.16096...@web65512.mail.ac4.yahoo.com, on 05/20/2011 at 07:35 PM, Scott Ford scott_j_f...@yahoo.com said: Where are you invoking the Java compiler the job stream presented ONLY copies your source to STDOUTL and STDERRL ... No, it copies the output. No compiler is shown in this example What is java, chopped liver? //RUN EXEC PGM=BPXBATCH, // PARM='SH java -cp /proj2/jproj/path.classpath' The -cp specifies the search path. He needs to specify a class or jar to compile. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- 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
Re: java executables using batch
In BANLkTintaXuqk4tb9Whfx=l53ipw+yf...@mail.gmail.com, on 05/21/2011 at 07:38 AM, jagadishan perumal jagadish...@gmail.com said: I was trying to invoke a java executable file using the below batch but The expected output was not recieved. Read the help data, then take a closer look at your JCL. The out out was expected to throw as HELLO WORLD Why would you expect output from a program that you didn't call? //RUN EXEC PGM=BPXBATCH, // PARM='SH java -cp /proj2/jproj/path.classpath' Notice what's missing. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- 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
Re: java executables using batch
Hi, Have written the java codes in HellowWorld.java and compiled it.. Now it works. On Wed, May 25, 2011 at 4:52 PM, Shmuel Metz (Seymour J.) shmuel+ibm-m...@patriot.net wrote: In BANLkTintaXuqk4tb9Whfx=l53ipw+yf...@mail.gmail.com, on 05/21/2011 at 07:38 AM, jagadishan perumal jagadish...@gmail.com said: I was trying to invoke a java executable file using the below batch but The expected output was not recieved. Read the help data, then take a closer look at your JCL. The out out was expected to throw as HELLO WORLD Why would you expect output from a program that you didn't call? //RUN EXEC PGM=BPXBATCH, // PARM='SH java -cp /proj2/jproj/path.classpath' Notice what's missing. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- 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
Re: java executables using batch
On Sat, 21 May 2011 07:38:04 +0530, jagadishan perumal jagadish...@gmail.com wrote: //RUN EXEC PGM=BPXBATCH, // PARM='SH java -cp /proj2/jproj/path.classpath' Try adding the class you want to execute to that command line... A classpath is nice, but to my knowledge, java does not guess which of the classes on the classpath is the main... Cheers, Jantje. -- 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
Re: java executables using batch
Don't be sorry. I'm glad you said it. I had something happen the other day that really made me laugh. The ratio of System Admins to system programmers here is about 8 to 1. Management wanted us to start showing the admins the systems aspect of z/os and the z10. One of the really bright guys came over and the first thing he asked was when the system hangs how do I reboot it. I laughed out loud and explained to him that we have scheduled IPL's once a week and don't do reboots in the middle of the week. He really couldn't believe it. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Scott Ford Sent: Saturday, May 21, 2011 10:37 AM To: IBM-MAIN@bama.ua.edu Subject: Re: java executables using batch As Chris Mason and I pointed out, the manual is a pretty good Jags: As Chris Mason and I pointed out, the manual is a pretty good starting point and another good reference is a lot of IBM and Share presentations. We all will admit, no one knows all the answers, it takes digging/researching/experience to find the solution. Also I might add, knowledge of the environment with the help of your friendly z/OS System's Programmers. These guys and gals are the unspoken heroes of a lot of shops. They usually are right on the frontlines. Sorry all for being on the soapbox, but the System Programmers( of which I was honored) to be among for many years, need the 'ata boys too' Scott J Ford www.identityforge.com From: Chris Mason chrisma...@belgacom.net To: IBM-MAIN@bama.ua.edu Sent: Sat, May 21, 2011 10:49:35 AM Subject: Re: java executables using batch Jags I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries. And just about simultaneously - given the delays involved while we toil putting together helpful posts for you - he did! Chris Mason On Sat, 21 May 2011 09:41:26 -0500, Chris Mason chrisma...@belgacom.net wrote: ... I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries[3]. ... On Sat, 21 May 2011 07:39:42 -0700, Scott Ford scott_j_f...@yahoo.com wrote: Jags, Here is what Mark spoke of it took all of a 5 sec search on Google... http://publibfi.boulder.ibm.com/epubs/pdf/ajvc0103.pdf Scott J Ford -- 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 == This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. -- 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
Re: java executables using batch
On Mon, 23 May 2011 08:53:36 -0500, Ward, Mike S wrote: ... we have scheduled IPL's once a week ... Whether you need it or not? Why? Lingering fear of resource leaks? Operator training? -- gil -- 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
Re: java executables using batch
Maintenance window. We are only allowed 1 maint window per week. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Monday, May 23, 2011 9:18 AM To: IBM-MAIN@bama.ua.edu Subject: Re: java executables using batch On Mon, 23 May 2011 08:53:36 -0500, Ward, Mike S wrote: ... we have scheduled IPL's once a week ... Whether you need it or not? Why? Lingering fear of resource leaks? Operator training? -- gil -- 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 == This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. -- 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
Re: java executables using batch
I think we IPL about once every 2-3 months. -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? -- 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
Re: java executables using batch
-Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin On Mon, 23 May 2011 08:53:36 -0500, Ward, Mike S wrote: ... we have scheduled IPL's once a week ... Whether you need it or not? Why? Because. Lingering fear of resource leaks? Operator training? Hysterical reasons: Mostly, We've always done it that way, but also for operator training / proficiency maintenance. We techies have a sandbox which we can IPL whenever, and there have been occasions when we bounced the sandbox frequently enough to make Meadowlark Lemon[1] jealous. :-) -jc- [1] Meadowlark Lemon was the incredible dribbler for the exhibition basketball team The Harlem Globetrotters. See, e.g., http://en.wikipedia.org/wiki/Meadowlark_Lemon -- 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
Re: java executables using batch
snip- Don't be sorry. I'm glad you said it. I had something happen the other day that really made me laugh. The ratio of System Admins to system programmers here is about 8 to 1. Management wanted us to start showing the admins the systems aspect of z/os and the z10. One of the really bright guys came over and the first thing he asked was when the system hangs how do I reboot it. I laughed out loud and explained to him that we have scheduled IPL's once a week and don't do reboots in the middle of the week. He really couldn't believe it. ---unsnip-- BTDT, Mike. Our IPL interval was the first Sunday of each month, but our M$ boys were rebooting 2-3 times daily. SYSPROG staff was 4, vs. 2 Admins for each server. Management argument was that M$ servers were less expensive than z-series but I wonder if they ever computed the people costs? Rick -- 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
Re: java executables using batch
On Mon, May 23, 2011 at 2:57 PM, Rick Fochtman rfocht...@ync.net wrote: snip- Don't be sorry. I'm glad you said it. I had something happen the other day that really made me laugh. The ratio of System Admins to system programmers here is about 8 to 1. Management wanted us to start showing the admins the systems aspect of z/os and the z10. One of the really bright guys came over and the first thing he asked was when the system hangs how do I reboot it. I laughed out loud and explained to him that we have scheduled IPL's once a week and don't do reboots in the middle of the week. He really couldn't believe it. ---unsnip-- BTDT, Mike. Our IPL interval was the first Sunday of each month, but our M$ boys were rebooting 2-3 times daily. SYSPROG staff was 4, vs. 2 Admins for each server. Management argument was that M$ servers were less expensive than z-series but I wonder if they ever computed the people costs? Rick They need to calculate total cost of all servers and total cost of all admins. Then show them they could run 300 zLinux servers on per IFL with very few admins and low SAN disk space under z/VM. Don't forget utility and cooling costs too. -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? -- 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
Re: java executables using batch
I exec Java from batch: Here is what my JCL looks like: //TSSDONS1 JOB (DON,DON),MSGCLASS=A,NOTIFY=SYSUID //* Caps must be off //MEASSRVR EXEC PGM=BPXBATCH,REGION=200M, // PARM='PGM /u/Java6_31/J6.0/bin/java -jar /u/test/SocketServer.ja' // r 41001 m=ewsf f=/u/meas/smf le=0' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* -- 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
Re: java executables using batch
First thing I'd do is use Java launcher rather than BPXBATCH to execute your java programs. Mark Jacobs -Original Message- From: IBM Mainframe Discussion List on behalf of jagadishan perumal Sent: Fri 5/20/2011 10:08 PM To: IBM-MAIN@bama.ua.edu 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 PROCSTEPRC EXCP CONNTCBSRB CLOCK SERV WORKLOAD P -RUN 00 66 14.00.00 .0293 BATCH -*OMVSEX 00 23 6.00.00 .0 67 BATCH -*OMVSEX 01144 4.00.00 .3200 BATCH -COPYOUT 00 68 31.00.00 .0694 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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? SYSIN IEF373I STEP/RUN /START 2011141.0722 IEF374I STEP/RUN /STOP 2011141.0722 CPU0MIN 00.03SEC SRB0MIN 00.00S IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE IEF373I STEP/*OMVSEX /START 2011141.0722 IEF374I STEP/*OMVSEX /STOP 2011141.0722 CPU0MIN 00.01SEC SRB0MIN 00.00S IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 0001 IEF373I STEP/*OMVSEX /START 2011141.0722 IEF374I STEP/*OMVSEX /STOP 2011141.0722 CPU0MIN 00.02SEC SRB0MIN 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 IEF285I IBMUSER.A255209$.JOB07223.D105.? 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.D106.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D107.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D108.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D102.? SYSIN IEF373I STEP/COPYOUT /START 2011141.0722 IEF374I STEP/COPYOUT /STOP 2011141.0722 CPU0MIN 00.08SEC SRB0MIN 00.00S IEF375I JOB/A255209$/START 2011141.0722 IEF376I JOB/A255209$/STOP 2011141.0722 CPU0MIN 00.14SEC SRB
Re: java executables using batch
Have you tried the obivously, which is the IBM Reference Manuals Jags: Have you tried the obivously, which is the IBM Reference Manuals , also try a Google , there are a ton of IBM presentations on it using various IDEs ... Scott J Ford www.identityforge.com From: jagadishan perumal jagadish...@gmail.com To: IBM-MAIN@bama.ua.edu Sent: Sat, May 21, 2011 1:38:56 AM Subject: Re: java executables using batch I have launched JZOS tool kit. But I want to know where i need to refer the JAVACLS ? On Sat, May 21, 2011 at 8:09 AM, Scott Ford scott_j_f...@yahoo.com wrote: Here where I would start looking for manualsthis is only a s Jags: Here where I would start looking for manualsthis is only a starting point: http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp Scott J Ford www.identityforge.com 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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? 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 IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 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
Re: java executables using batch
Here is what Mark spoke of it took all of a 5 sec search on Goog Jags, Here is what Mark spoke of it took all of a 5 sec search on Google... http://publibfi.boulder.ibm.com/epubs/pdf/ajvc0103.pdf Scott J Ford From: Mark Jacobs mark.jac...@custserv.com To: IBM-MAIN@bama.ua.edu Sent: Sat, May 21, 2011 10:31:43 AM Subject: Re: java executables using batch First thing I'd do is use Java launcher rather than BPXBATCH to execute your java programs. Mark Jacobs -Original Message- From: IBM Mainframe Discussion List on behalf of jagadishan perumal Sent: Fri 5/20/2011 10:08 PM To: IBM-MAIN@bama.ua.edu 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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? 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 IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 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 IEF285I IBMUSER.A255209$.JOB07223.D105.? 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.D106.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223
Re: java executables using batch
Jags Could Anyone please throw some light on this issue. It still looks like a *problem* to me, something which isn't working and requires only a knowledge of a technical subject to fix rather than a government debate. Here where I would start looking for manuals I have launched JZOS tool kit. Armed with a hint from Scott Ford that you might need advising to refer to manuals - although appropriate ones would be best rather than a net cast where the desired species of fish is just not to be found[1] - and - aided by your mentioning the desired species, namely the slippery JZOS, I did something which you might like to note for future problems you may have, which is to research your sources. I guess I could have started with the IBM web site, but tossing[2] some sort of mental coin, I decided on Google. I used JZOS as my Google search word an the following was the first hit: http://www- 03.ibm.com/systems/z/os/zos/tools/java/products/jzos/overview.html quote JZOS Java Launcher and Toolkit Overview (last updated March, 2011) A batch launcher and toolkit for Java applications running on z/OS. ... /quote I've included the first line of the article since it offers encouragement in the current context by containing the word batch. In the second half of the page, we find some document references and so, using Scott Ford's words, I suggest that just maybe Here where I would start looking for manuals I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries[3]. Because you get handed a PDF of JZOS Batch Launcher and Toolkit Installation and User's Guide and you might like to download it, by use this time of the IBM search function, I found the following rich page which has a lot of aromatic manuals with Java in their titles, which may assist you: z/OS Software Products PDF files http://www-03.ibm.com/systems/z/os/zos/bkserv/zswpdf/ which looks like a handy page to have at one's beck and call. So thank you, Scott Ford, for prompting the discovery of this gem! Except ... I thought I'd noticed something not quite right - and I was right, unfortunately. It seems this superficially superb page isn't quite as wonderful as it might be. The level of SA23-2245 offered from the JZOS Java Launcher and Toolkit Overview page is -03 (2011), the level offered by the z/OS Software Products PDF files page is -01 (2008, positively antediluvian!). Maybe I'll enquire what the maintenance policy should be for this potentially excellent resource. - [1] Actually using my usual starting point for z/OS - although not exclusively z/OS - manuals http://www-03.ibm.com/systems/z/os/zos/bkserv/ and moving on to both the current release, V1R12, as a way of deciding which release to go for as well as the release for whatever reason plumped on by Scott Ford, V1R11, I discovered that a net cast to discover something about JZOS in this pond entrapped one measly minnow: http://publibz.boulder.ibm.com/cgi- bin/bookmgr_OS390/BOOKS/dgt2c890/4.1.2.4 which doesn't look all that helpful - but I'm way outside my comfort zone here so what do I know? Using Scott Ford's starting point which takes me into a navigation system I *do not like* at all***, and using the supposed search function for JZOS, I found *two* minnows. All these minnows seem to be related since they involve DFSMSrmm. [2] Not the sort of tossing to which a certain antipodean resorts when the matter of assisting relatively new subscribers emerges: http://alabamamaps.ua.edu/cgi-bin/wa?A2=ind1105L=ibm- mainD=1T=0O=DP=99202 [3] Between the shining seas, the word inquiries would be used in this context. - Chris Mason On Sat, 21 May 2011 11:08:56 +0530, jagadishan perumal jagadish...@gmail.com wrote: I have launched JZOS tool kit. But I want to know where i need to refer the JAVACLS ? On Sat, May 21, 2011 at 8:09 AM, Scott Ford scott_j_f...@yahoo.com wrote: Jags: Here where I would start looking for manualsthis is only a starting point: http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp Scott J Ford www.identityforge.com 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. ... 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
Re: java executables using batch
Jags I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries. And just about simultaneously - given the delays involved while we toil putting together helpful posts for you - he did! Chris Mason On Sat, 21 May 2011 09:41:26 -0500, Chris Mason chrisma...@belgacom.net wrote: ... I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries[3]. ... On Sat, 21 May 2011 07:39:42 -0700, Scott Ford scott_j_f...@yahoo.com wrote: Jags, Here is what Mark spoke of it took all of a 5 sec search on Google... http://publibfi.boulder.ibm.com/epubs/pdf/ajvc0103.pdf Scott J Ford -- 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
Re: java executables using batch
As Chris Mason and I pointed out, the manual is a pretty good Jags: As Chris Mason and I pointed out, the manual is a pretty good starting point and another good reference is a lot of IBM and Share presentations. We all will admit, no one knows all the answers, it takes digging/researching/experience to find the solution. Also I might add, knowledge of the environment with the help of your friendly z/OS System's Programmers. These guys and gals are the unspoken heroes of a lot of shops. They usually are right on the frontlines. Sorry all for being on the soapbox, but the System Programmers( of which I was honored) to be among for many years, need the 'ata boys too' Scott J Ford www.identityforge.com From: Chris Mason chrisma...@belgacom.net To: IBM-MAIN@bama.ua.edu Sent: Sat, May 21, 2011 10:49:35 AM Subject: Re: java executables using batch Jags I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries. And just about simultaneously - given the delays involved while we toil putting together helpful posts for you - he did! Chris Mason On Sat, 21 May 2011 09:41:26 -0500, Chris Mason chrisma...@belgacom.net wrote: ... I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries[3]. ... On Sat, 21 May 2011 07:39:42 -0700, Scott Ford scott_j_f...@yahoo.com wrote: Jags, Here is what Mark spoke of it took all of a 5 sec search on Google... http://publibfi.boulder.ibm.com/epubs/pdf/ajvc0103.pdf Scott J Ford -- 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
Re: java executables using batch
Hi Chris, The link given is really useful. Most of doubts regarding the JAVACLS got cleared off. Also I must appreciate your tying skills :) Regards, Jags On Sat, May 21, 2011 at 9:06 PM, Scott Ford scott_j_f...@yahoo.com wrote: As Chris Mason and I pointed out, the manual is a pretty good Jags: As Chris Mason and I pointed out, the manual is a pretty good starting point and another good reference is a lot of IBM and Share presentations. We all will admit, no one knows all the answers, it takes digging/researching/experience to find the solution. Also I might add, knowledge of the environment with the help of your friendly z/OS System's Programmers. These guys and gals are the unspoken heroes of a lot of shops. They usually are right on the frontlines. Sorry all for being on the soapbox, but the System Programmers( of which I was honored) to be among for many years, need the 'ata boys too' Scott J Ford www.identityforge.com From: Chris Mason chrisma...@belgacom.net To: IBM-MAIN@bama.ua.edu Sent: Sat, May 21, 2011 10:49:35 AM Subject: Re: java executables using batch Jags I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries. And just about simultaneously - given the delays involved while we toil putting together helpful posts for you - he did! Chris Mason On Sat, 21 May 2011 09:41:26 -0500, Chris Mason chrisma...@belgacom.net wrote: ... I'm going to assume he would have made a similar to identical suggestion if he had realised that JZOS was a handy hook on which to hang your enquiries[3]. ... On Sat, 21 May 2011 07:39:42 -0700, Scott Ford scott_j_f...@yahoo.com wrote: Jags, Here is what Mark spoke of it took all of a 5 sec search on Google... http://publibfi.boulder.ibm.com/epubs/pdf/ajvc0103.pdf Scott J Ford -- 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 -- 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
Re: java executables using batch
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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? 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 IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 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 IEF285I IBMUSER.A255209$.JOB07223.D105.? 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.D106.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D107.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D108.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D102.? SYSIN IEF373I STEP/COPYOUT /START 2011141.0722 IEF374I STEP/COPYOUT /STOP 2011141.0722 CPU 0MIN 00.08SEC SRB 0MIN 00.00S IEF375I
Re: java executables using batch
Here where I would start looking for manualsthis is only a s Jags: Here where I would start looking for manualsthis is only a starting point: http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp Scott J Ford www.identityforge.com 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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? 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 IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 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 IEF285I IBMUSER.A255209$.JOB07223.D105.? 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.D106.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D107.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D108.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D102.? SYSIN IEF373I STEP/COPYOUT /START 2011141.0722 IEF374I STEP/COPYOUT /STOP 2011141.0722 CPU 0MIN 00.08SEC SRB 0MIN 00.00S IEF375I
Re: java executables using batch
I have launched JZOS tool kit. But I want to know where i need to refer the JAVACLS ? On Sat, May 21, 2011 at 8:09 AM, Scott Ford scott_j_f...@yahoo.com wrote: Here where I would start looking for manualsthis is only a s Jags: Here where I would start looking for manualsthis is only a starting point: http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp Scott J Ford www.identityforge.com 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 PROCSTEPRC EXCP CONNTCBSRB CLOCK SERV WORKLOAD P -RUN 006614.00.00.0293 BATCH -*OMVSEX 0023 6.00.00.067 BATCH -*OMVSEX 01144 4.00.00.3200 BATCH -COPYOUT 006831.00.00.0694 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 IEF285I IBMUSER.A255209$.JOB07223.D103.? SYSOUT IEF285I IBMUSER.A255209$.JOB07223.D104.? 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.D101.? SYSIN IEF373I STEP/RUN/START 2011141.0722 IEF374I STEP/RUN/STOP 2011141.0722 CPU0MIN 00.03SEC SRB0MIN 00.00S IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE IEF373I STEP/*OMVSEX /START 2011141.0722 IEF374I STEP/*OMVSEX /STOP 2011141.0722 CPU0MIN 00.01SEC SRB0MIN 00.00S IEF142I A255209$ *OMVSEX - STEP WAS EXECUTED - COND CODE 0001 IEF373I STEP/*OMVSEX /START 2011141.0722 IEF374I STEP/*OMVSEX /STOP 2011141.0722 CPU0MIN 00.02SEC SRB0MIN 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 IEF285I IBMUSER.A255209$.JOB07223.D105.? 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