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

What does parameters mean in PL/I?


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

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Thu Aug 30, 2018 8:36 pm
Reply with quote

Hello experts,

My code got following two error but when i checked that error message it mentioned "PARAMETER " so i am not sure what does "PARAMETER " means in the code? Anyone can help me ? thanks


1. Get following error for code : DCL ABC POINTER STATIC;
IBM2462I E : The attribute STATIC conflicts with the attribute PARAMETER and is ignored.

2. Get following error for code : SHDR CONNECTED
IBM2413I E : The attribute CONNECTED should be specified only on parameters and descriptors.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Aug 30, 2018 9:03 pm
Reply with quote

if You had posted the code as ORIGINALLY written ( cut and paste )
instead of a retype, probably there would have been more hints for a reply
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 30, 2018 9:06 pm
Reply with quote

If you don't know what a parameter is, you shouldn't be posting on a forum for experts...
Back to top
View user's profile Send private message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Thu Aug 30, 2018 9:11 pm
Reply with quote

Sorry, if you can explain what is parameter in DCL ABC POINTER STATIC; i just not sure what is parameter in the error message it refer to in this code? is it means ABC?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 30, 2018 9:27 pm
Reply with quote

It means that the PROCEDURE statement of your routine looks something like:

Code:
 foo;  procedure (abc);


indicating that ABC is passed from a higher-level routine. Since parameters are passed on the stack, and declaring a variable STATIC in PL/I means that storage for it is reserved in the load module, you will perceive the contradiction.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Thu Aug 30, 2018 10:11 pm
Reply with quote

jackzhang75 wrote:
Sorry, if you can explain what is parameter in DCL ABC POINTER STATIC; i just not sure what is parameter in the error message it refer to in this code? is it means ABC?

icon_pray.gif icon_axe.gif icon_butt.gif
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Thu Aug 30, 2018 10:40 pm
Reply with quote

jackzhang75 wrote:
Sorry, if you can explain what is parameter in DCL ABC POINTER STATIC; i just not sure what is parameter in the error message it refer to in this code? is it means ABC?

Did you read something about PL/I?
About programming languages?
About computers?
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
Search our Forums:

Back to Top