Run a Job with JAVA source code.

C/C++ and Java for MVS & zOS.
Post Reply
Raja Pasha
New Member
Posts: 1
Joined: Sun Nov 16, 2014 12:16 pm

Run a Job with JAVA source code.

Post by Raja Pasha »

Hi

I am trying to execute the below Job. JVMLDM76 is system supplied program.

Code: Select all

//JAVAHELO JOB 'Test JAVA',REGION=0M,CLASS=A,
//           NOTIFY=&SYSUID                                      
//JOMVS EXEC PGM=JVMLDM76,REGION=0M
//STEPLIB  DD DSN=*.**.XYZ.LINKLIB.PDSE,DISP=SHR  
//SYSIN    DD  *                                         
/* program */                                
  public class JHelloWorld                              
  {                                                     
     public static void main(String args[])              
     {                                                  
        System.out.println("Hello World!");                 
     }                                                  
  }                                                    
//*                                                      
//STDOUT   DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//*     
But the I got the below error:

Code: Select all

' No java class name argument supplied. Jzos batch launcher failed, return code=101 '
Please sugest how can I solve it.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Run a Job with JAVA source code.

Post by enrico-sorichetti »

Please sugest how can I solve it.
did You do Your homework before asking for help :x
looks like NOT, read how to use the java batch launcher here
http://publibz.boulder.ibm.com/epubs/pdf/ajvc0114.pdf
chapter 3

but You could have found out the link Yourself with a plan simple google search using JVMLDM76 DOC
that what I did ...
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “C, C++ and Java for Mainframes.”