monga Beginner

Joined: 03 Feb 2005 Posts: 2 Topics: 2 Location: INDIA
|
Posted: Thu Apr 13, 2006 7:08 am Post subject: IMS DC Programming - Query |
|
|
Hi,
This is pertaining to IMS DC.
I have a requirement wherein i don't have an idea of how many segments i would receive from IMS (spreadsheet data - one segment for my case would have some 400 rows). All segments would have the data that is related to a particular key.
My idea here is rather than reading the full message into a variable - if i do a first gu call - process that message, and then process the messages from the subsequent gn calls until the end. (The other way is if i have a limit then i can read the full message into a variable).
Now the question is : If after the first segment read - i have a condition(like some key data missing) wherein i need to skip the whole process(including the read of subsequent segments) and send back the response to IMS (basically to JAVA frontend), then still a partial message would be in the IMS queue. Would this create a problem? Also if i use rollback here would that be effective? Is this is a valid idea?
Thanks. |
|