Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Passing Parameters to PLI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 1:46 pm    Post subject: Passing Parameters to PLI
Reply with quote

Hi all,

Is it possible to pass a parameter from JCL to a PLI program with the use of the "PARM=" keyword with the EXEC statement??? (instead of using SYSIN).

Please clarify me.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Nov 28, 2007 1:57 pm    Post subject: Reply to: Passing Parameters to PLI
Reply with quote

Yes it is!
but beware...

usually You use "EXEC PGM=pgmname,PARM='........'

for PL/1 programs
You MUST use "EXEC PGM=pgmname,PARM='/........'

notice the slash,
the string before the slash are PL/I related runtime parms,
and PL/1 will pass to Your program the part after the slash

the field for the parm string MUST be declared as CHAR VAR
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 2:07 pm    Post subject:
Reply with quote

It's okay, Enrico Sorichetti.

But, how to get the passed parameter in PL1. If COBOL means, We use Linkage Section and data name defined in that section.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Nov 28, 2007 2:41 pm    Post subject: Reply to: Passing Parameters to PLI
Reply with quote

No need to Yell...

....PROC(PARM) OPTIONS(MAIN) ...
DCL PARM CHAR(100) VAR;
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 3:53 pm    Post subject:
Reply with quote

You MUST use "EXEC PGM=pgmname,PARM='/........'

Without that slash also, it's working fine...
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Nov 28, 2007 3:59 pm    Post subject: Reply to: Passing Parameters to PLI
Reply with quote

Again no need to yell,
( that' s what bolding out things mean )

I gave You the most general answer,

PL/1 runtime also might need parms passed to it,
and the slash is the way of separating them
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 4:08 pm    Post subject:
Reply with quote

Thanks for your nice informaion, E.S
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us