I want to run jcl job with java source code embedded with job itself. I found some cobol examples whose source code is written within SYSIN DD * or SYSIN DD DATA and tried the same with java program.
Here is my job:
//JHELLO JOB MSGLEVEL=(1,1),REGION=0M,CLASS=A,MSGCLASS=A,
// NOTIFY=&SYSUID
//JOMVS EXEC PGM=BPXBATCH,REGION=0M,TIME=NOLIMIT
//SYSIN DD *
/* program starts here */
public class JHelloWorld
{
public static void main(String args[])
{
System.out.println("Hello :)");
}
}
//*
//STDOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDENV DD *
//
After submitting, Job terminates with this message.
rather than hello :) output.
Note: I do not want to access the .java program nor java program as .sh shell script through parm statement.
Thank you,
Edit: Attached code, Removed screenshot