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

Suppress 100 Warnings IBM1214I related to dummy arguments


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 23, 2008 8:06 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Sep 24, 2008 2:16 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 24, 2008 3:18 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Related to Unit Testing Testing & Performance 2
No new posts Strange MNOTE related to BMS using PI... CICS 0
No new posts How to pass arguments in a ISPSTART c... CLIST & REXX 6
This topic is locked: you cannot edit posts or make replies. Related to using a file in comparison JCL & VSAM 8
No new posts Related to performing validation of f... DFSORT/ICETOOL 19
Search our Forums:

Back to Top