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
 
What does parameters mean in PL/I?

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

Active User


Joined: 09 Jun 2014
Posts: 119
Location: CT

PostPosted: Thu Aug 30, 2018 8:36 pm    Post subject: What does parameters mean in PL/I?
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

Senior Member


Joined: 14 Mar 2007
Posts: 10521
Location: italy

PostPosted: Thu Aug 30, 2018 9:03 pm    Post subject: Reply to: What does parameters mean in PL/I?
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: 1118
Location: Oostende, Belgium

PostPosted: Thu Aug 30, 2018 9:06 pm    Post subject:
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: 119
Location: CT

PostPosted: Thu Aug 30, 2018 9:11 pm    Post subject:
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: 1790
Location: Bloomington, IL

PostPosted: Thu Aug 30, 2018 9:27 pm    Post subject:
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

Active User


Joined: 29 Apr 2008
Posts: 365
Location: Maryland

PostPosted: Thu Aug 30, 2018 10:11 pm    Post subject:
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

Active User


Joined: 29 Apr 2008
Posts: 365
Location: Maryland

PostPosted: Thu Aug 30, 2018 10:40 pm    Post subject:
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    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 Generate SQL query dynamically using ... vnktrrd DB2 7 Tue Aug 28, 2018 8:11 pm
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 LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 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

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