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

Invoking helproutine from MAP


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Sat Feb 21, 2009 8:44 am
Reply with quote

Hi,

After a long time I have got to post a crucial (for me) query in this forum.
The requirement first:
I have a map and for a specific field I need the NEW(replacing the older one) helproutine to work for me.
The problem:
I have an existing PDA defined for the MAP. This Data area is populated with data from a call to COBOL program.
Now my aim is to pull some more data(3 more variables) thru the COBOL program and pass these 3 varaibles to the Helproutine during invoking the Helproutine.

I am succeeding till the time I get these 3 variables populated from the COBOL call. But when the INPUT USING map is getting executed, it is giving me the error 936 (format/length conflict).

I have STOWed all the modules in proper sequence(I hope). But always the error is the same.

The variables I declared in PDA are
#CTX-ID A 40
#PROCESS A 8
#HDL-ACT N 3

I have passed these 3 variables to the Helproutine from the HE= in the MAP

But to my surprise, when I listed the MAP(Not in EDIT), I have seen that
DEFINE DATA PARAMETER
1 #BLOCKAGE (A005)
1#CTX-ID (N7.0)
-----
------
----
1 #PROCESS (N7.0)----
-----
1 #HDL-ACT-ID (N7,0)

I do not understand, from where this format/length is coming.

And finally when the INPUT statement is getting executed, the error comes as
Format/Length conflict in parameter (Map MVSMP01M).

I doc has been attached for reference.

I hope I am clear with my problem. If not, I am here to clarify.

Thanks in Advance
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Nov 10, 2009 11:17 pm
Reply with quote

Hi All,

I am sorry in posting the answer to this post after a long time.

Here goes the answer

In general when we change the parameters to the helproutine, Natural system takes the default format and length as N7,0 even if we define the variables in Data area with our own format/length.

In this case what we have to do is go the map editor.

Display the variable definition
Press PF9 (Parameter) and then modify the format/length and save the map.

This resolves this problem.
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 Nov 11, 2009 12:20 am
Reply with quote

Thank you for letting us know icon_smile.gif

Hopefully, it will help someone else one day,

d
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts getting RC=3650 when invoking REXX wi... CLIST & REXX 7
This topic is locked: you cannot edit posts or make replies. Invoking a CICS transaction from a no... CICS 7
No new posts ISRE771 error while invoking macros CLIST & REXX 5
No new posts invoking HYPERSPACE in BMC LOADPLUS DB2 2
No new posts Invoking adrdssu using attchmvs IBM Tools 5
Search our Forums:

Back to Top