MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PL/I ,how to submit a jcl from a pl/i program?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Wed Sep 28, 2005 10:07 am    Post subject: PL/I ,how to submit a jcl from a pl/i program? Reply with quote

1)how to submit a jcl from a pl/i program?
2)how to pass a return code from pl/i program to jcl?
3.)how to pass more than one parameter to pli program from jcl.,i.e passing parameter using PARM,not using sysin.
in pli i coded in this way, but it is not working for two parameters

myproc:proc(val1,val2) options(main) reorder;
dcl 1 val1 char(10) varying;
dc1 2 val2 char(10) varying;


---if i pass one parameter ,it is working fine,how to pass more than one parameter from jcl using PARM and how to receive in PL/I PROGRAM?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Sep 28, 2005 11:45 am    Post subject: Reply with quote

vjkumk,





1.Please search before you post. Check this link which shows submitting of a Job using cobol. You can change it accordingly.

http://mvsforums.com/helpboards/viewtopic.php?t=444&highlight=intrdr


2. Check this link for passing parm to a program.

http://www.mvsforums.com/helpboards/viewtopic.php?t=442&highlight=parm

http://www.mvsforums.com/helpboards/viewtopic.php?t=1188&highlight=parm

http://www.mvsforums.com/helpboards/viewtopic.php?t=1581&highlight=parm

Check this link for passing return code to a next step

http://www.mvsforums.com/helpboards/viewtopic.php?t=2059&highlight=return

http://www.mvsforums.com/helpboards/viewtopic.php?t=761&highlight=return




3. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3679&highlight=parm+pli

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Thu Sep 29, 2005 10:17 am    Post subject: got the answer for submiting jcl from pli pgm! Reply with quote

finally,the help from this forum and of my own,i can able to finish the PL/I program to pass jcl.
there is one thing which is not mentioned in this forum,these are things you should note when submitting the jcl from pli pgm
in pli pgm :
dcl OUTFILE file output env(f recsize(80)) ---should be mentioned
and write all jcl to the structure of length 80.




and in runjcl:instead of sysout give the output file name!
//step1 exec pgm=plipgm
//steplib dd dsn=pds of loadmodule
//sysprint dd sysout=a
//outfile dd sysout=(a,intrdr)


bye
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group