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

conversational program not reading the user input from scre


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhakarmurari

New User


Joined: 15 Nov 2013
Posts: 4
Location: USA

PostPosted: Mon Apr 13, 2020 6:16 am
Reply with quote

Hi,

I am relatively new to IMS TM and trying to create a new program that uses Scratch Pad Area to communicate with the terminal. I am using a screen that accepts user input and initiates a transaction triggered MPP which then retrieves information related to the data & the function key entered by the user. The MPP routes the output to one of the screens depending on the PF Key. when the user hits another function key, the MPP reads data from SPA for the corresponding screen and throws that screen to the terminal. It's a very simple program and I was able to achieve the same functionality without using a Scratch Pad area in a non-conversational approach. I need to do this using a conversational program(that uses Scratch Pad) and expand upon it.

I have a GU call using the Scratch Pad IO area followed by a GN call using Input Message IO Area. The program just doesn't seem to be doing anything. However when I change things here and there a bit, the screen displays random data which consists of few bytes from the transaction ID and few bytes from the data entered on the input field and the value corresponding to the function keys in the MFS. In short, whatever is displayed on the screen consists of a jumbled up mix of what I enter as input including the function keys. It looks like there is a problem with the input messages read in the GU and the GN calls. Am I missing anything while issuing these two calls back to back. Do I need to take care of anything in the GN call - I have coded a condition to check if the message read by GN call has a shorter length because the transaction code would have been removed. Not really sure what else I am missing. can you please provide a pseudo sample of how should I place my calls to read a simple message (just one field) in a conversational program that uses Scratch Pad.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Apr 13, 2020 1:08 pm
Reply with quote

I doubt very much that anuthing was "thrown at the terminal". I suspect that something was "displayed on the terminal".

Nothing is 'thrown' on z/OS.
Back to top
View user's profile Send private message
sudhakarmurari

New User


Joined: 15 Nov 2013
Posts: 4
Location: USA

PostPosted: Mon Apr 13, 2020 7:29 pm
Reply with quote

My apologies for using the word throw. I am sure you would have noticed that I have used the word "Display" at other places.
If you could please disregard this error and help me resolve the problem.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top