View previous topic :: View next topic
|
Author |
Message |
Dibyendu Mandal
New User
Joined: 08 Dec 2011 Posts: 10 Location: India
|
|
|
|
Hi,
I am trying to pass the value for more than variable though JCL.But I am getting problem while doing this.
My PL/I program-
MAIN:PROC OPTIONS(MAIN);
DCL A FLOAT DEC(5);
DCL B FIXED DEC(5);
GET LIST(A,B);
IF A <= 5 THEN
....
JCL-
//OZA058R JOB OZA,OZA,MSGLEVEL=(1,1),
// CLASS=1,MSGCLASS=X,NOTIFY=&SYSUID,REGION=6M
//STEP1 EXEC PGM=PLI13
//STEPLIB DD DSN=OZA058.DEV.LOAD,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
4.8
4.8
/*
//
But after submitting the JCL Maxcc=0 is coming.But I am not able to see STEP1 in Spool.Spool is coming something like-
NP DDNAME StepName ProcStep DSID Owner C Dest
JESYSMSG 4 OZA058 X LOCAL
JESMSGLG JES2 2 OZA058 X LOCAL
JESJCL JES2 3 OZA058 X LOCAL
So I am not able to the output.I guess I am making some mistake while passing more than one value through JCL(may be some syntax error).
Note:I can pass 1 value through JCL without any problem.
Please help. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Your program, what is shown, does not have any DISPLAY or PUT SKIPs in it so nothing would be expected to appear. And you are not passing your variable through JCL you are reading a temporary dataset created by the operating system when it reads the JCL at job submission time (not execution time). And learn to use files as soon as possible. I only use PUT for diagnostics and GET only to understand it's usage - never used GET in real life. If that is currently what you are being taught then read ahead and get to the proper stuff. And if you are just learning why not join the sister forum for 'Beginners and Students' instead of the expert's forum. You can easily find it via Google. And, finally, put code and data in 'code tags' so that it is readable and it preserves extra blanks. |
|
Back to top |
|
|
Dibyendu Mandal
New User
Joined: 08 Dec 2011 Posts: 10 Location: India
|
|
|
|
I got the problem.
Thanks Nic for the quick reply. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
I also see that you have DISP=OLD on your STEPLIB - this is a no-noas it prevents other people adding programs - not a problem for your own libraries but a good habit to get into is using good JCL. |
|
Back to top |
|
|
|