View previous topic :: View next topic
|
Author |
Message |
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
If you don't know what a parameter is, you shouldn't be posting on a forum for experts... |
|
Back to top |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2012 Location: USA
|
|
|
|
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? |
|
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2012 Location: USA
|
|
|
|
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 |
|
|
|