Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 788
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: 10375
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: 788
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: 10375
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: 788
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: 10375
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: 788
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
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us