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
 

 

Suppress 100 Warnings IBM1214I related to dummy arguments

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

New User


Joined: 18 Sep 2008
Posts: 2
Location: Denmark

PostPosted: Tue Sep 23, 2008 7:55 pm    Post subject: Suppress 100 Warnings IBM1214I related to dummy arguments
Reply with quote

Hi

I am getting the below mentioned warning message IBM1214I when I use the bellow piece of code in my program.

IBM1214I W A dummy argument will be created for argument number 1 in entry reference

DCL arg1 CHAR(023) BASED(ADDR(argRecord));
CALL MyProc(arg1,15);
...
MyProc: PROC(SomeString,SomeNumber);
DCL arg11 CHAR(300);
DCL arg22 BIN FIXED(15,0);



I am calling this MyProc say 150 times. When I try to compile, I get 150 warning messages. My compiler has a threshold of handling only first 100 warnings.

How to supress these warnings? I have tried using the below but no use.
DCL arg1 CHAR(023) BASED(ADDR(argRecord));
also tried
DCL MyProc ENTRY(UNALIGNED CHAR, UNALIGNED FIXED BIN);

Can someone please throw some light onto this issue? Thank you so much.

Regards
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Tue Sep 23, 2008 8:06 pm    Post subject:
Reply with quote

The messages and codes manual says
Quote:
IBM1214I W A dummy argument will be created for argument number
argument-number in entry reference entry name.

Explanation: An argument passed BYADDR to an entry does not match the corresponding parameter in the entry description. The address of the argument will not be passed to the entry. Instead, the argument will be assigned to a temporary with attributes that do match the parameter in the entry description, and the address of that temporary will be passed to the entry. This means that if the entry alters the value of this parameter, the alteration will not be visible in the calling routine.


dcl e entry( fixed bin(31) );
dcl i fixed bin(15);
call e( i );
which implies the fix is to change the argument (or the parameter) to match the parameter (or argument).
Back to top
View user's profile Send private message
csc7660

New User


Joined: 18 Sep 2008
Posts: 2
Location: Denmark

PostPosted: Tue Sep 23, 2008 8:45 pm    Post subject: Reply to: Suppress 100 Warnings IBM1214I related to dummy ar
Reply with quote

I read these comments from Mainframes help topics... any further help? Thanks.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 24, 2008 2:16 am    Post subject:
Reply with quote

Hello,

Quote:
any further help?
Unless i misunderstand, you need to fix the code. . . .

I suppose you could conserve effort and only fix 51 of them. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Wed Sep 24, 2008 3:18 am    Post subject:
Reply with quote

Have you tried changing the (023) to (300) or the (300) to (023)? Code fixes tend to be more your responsibility, of course -- not ours.
Back to top
View user's profile Send private message
hchinnam

New User


Joined: 18 Oct 2006
Posts: 73

PostPosted: Wed Sep 24, 2008 6:15 pm    Post subject: Re: Suppress 100 Warnings IBM1214I related to dummy argument
Reply with quote

csc7660 wrote:


DCL arg1 CHAR(023) BASED(ADDR(argRecord));
CALL MyProc(arg1,15);
...
MyProc: PROC(SomeString,SomeNumber);
DCL arg11 CHAR(300);
DCL arg22 BIN FIXED(15,0);[/color]



Long since I worked in PL/I, But I thought declaration of "somestring" should match that of "arg1".

Can you post your declarations in Myproc.

Also can you post what compiler is saying about declaration of "somestring"
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 DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts How to suppress retun code of partil ... mkk157 DB2 9 Fri May 27, 2016 6:59 am
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm
No new posts JCL sort related Mani453 DFSORT/ICETOOL 13 Sun Dec 20, 2015 1:04 pm


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