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
 

 

Invoking helproutine from MAP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Invoking helproutine from MAP
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    Post subject:
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

Site Director


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

PostPosted: Wed Nov 11, 2009 12:20 am    Post subject: Reply to: Invoking helproutine from MAP
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts Invoking SAS in Mainframe mkk157 All Other Mainframe Topics 3 Thu Jun 02, 2016 1:12 pm
No new posts Invoking a CICS program through LINK P Srinivasan CICS 10 Mon Apr 18, 2016 8:55 am
No new posts Invoking QW from REXX pshongal CLIST & REXX 2 Tue Sep 09, 2014 10:24 am


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