Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
problem with CICS RECEIVE COMMAND

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Wed Sep 30, 2009 3:35 pm    Post subject: problem with CICS RECEIVE COMMAND
Reply with quote

Hi All,
I am using CICS receive command to get the input from the screen along with tran id. Some times if the screen is not clear, i m getting the invalid values.

Ex:
input:
XXXX INPUT

Output:
we receive as 'XXXX INPUT'
So it work fine..

Now when the user give the input in the below format without clearing the screen.

Input:(first byte as space)
XXXX INPUT

Output:
'. AXXX INPUT' So input value not properly received.

Is there any way to handle thru receive command ?.Please advise.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Wed Sep 30, 2009 4:13 pm    Post subject:
Reply with quote

Just a guess, but you are not RECEIVEing a map. Thus, what you receive is what you get. you are going to have to program your way around or simply spit it back to the user when he has not pre-cleared the screen.
Back to top
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Wed Sep 30, 2009 4:27 pm    Post subject: Reply to: problem with CICS RECEIVE COMMAND
Reply with quote

I am not using any map to receive the value. But what my question is why we getting the '. A' if the user leave the one blank space before TRAN ID.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 30, 2009 4:51 pm    Post subject:
Reply with quote

Quote:
But what my question is why we getting the '. A' if the user leave the one blank space before TRAN ID.
Because that is what you are getting -- which is pretty much the best answer you're going to get. As Dick said, your program needs to be prepared to handle this (possibly by specifying the BUFFER option on the RECEIVE) and realize that what you get is what you get. The data could be attribute information, or garbage, or who knows what. Feel free to find the manual on 3270 data streams and delve into exactly why you're getting the data you are -- but it could take a few days (or weeks) of reading and reviewing tests to determine the precise reason (once you find the appropriate manual).
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us