IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

passing data from JCL to PLI program


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dibyendu Mandal

New User


Joined: 08 Dec 2011
Posts: 10
Location: India

PostPosted: Sun Jul 22, 2012 1:00 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sun Jul 22, 2012 1:59 pm
Reply with quote

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
View user's profile Send private message
Dibyendu Mandal

New User


Joined: 08 Dec 2011
Posts: 10
Location: India

PostPosted: Sun Jul 22, 2012 3:30 pm
Reply with quote

I got the problem.
Thanks Nic for the quick reply.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sun Jul 22, 2012 5:34 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top