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
 
How to handle Empty Input File to CICS screen

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

New User


Joined: 08 Feb 2008
Posts: 23
Location: Hyderabad

PostPosted: Tue Apr 10, 2012 6:06 pm    Post subject: How to handle Empty Input File to CICS screen
Reply with quote

Hi All,

I'm using a VSAM file as input to an online CICS screen program which has got scrolling logic too.

My problem is, how do I handle a scenario where the INPUT VSAM file is going to be Empty.

Please let me know of some suggestions.

Thank you.
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10478
Location: italy

PostPosted: Tue Apr 10, 2012 6:14 pm    Post subject: Reply to: How to handle Empty Input File to CICS screen
Reply with quote

the question is so badly described that it makes little sense
the only logical/reasonable reply is ..
return the same answer/error as the one You would return for a no record found condition.
Back to top
View user's profile Send private message
mohammad amir ashraff

New User


Joined: 08 Feb 2008
Posts: 23
Location: Hyderabad

PostPosted: Tue Apr 10, 2012 6:36 pm    Post subject: Re: Reply to: How to handle Empty Input File to CICS screen
Reply with quote

enrico-sorichetti wrote:
the question is so badly described that it makes little sense
the only logical/reasonable reply is ..
return the same answer/error as the one You would return for a no record found condition.


ok to put it in a better way:

1) I have a CICS screen program

2) It uses only 1 input file (which happens to be a VSAM file)

3) The CICS screen program reads the VSAM file and based on some
criteria throws some records on to the screen

4) The user in turn has an option to select a row from the 10 rows of
records which are displayed on the screen which will then pass the
control to another program

5) The user also has another option to enter a policy number in a field
out of the list of policy numbers on display on the screen, in this case
there will be a pop-up screen which will throw more details about the
particular policy entered on to the screen

6) my problem is how should I handle a situation where in the input VSAM
file happens to be EMPTY, currently whatever error messages that are
being generated by the program are being thrown on to the screen
with the screen being built each time (even if there is an error message
like - RECORD NOT FOUND). So for an empty file how do I build the
map (given that the input file is empty now so where is the data to
build the map from).
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8339
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 10, 2012 7:07 pm    Post subject:
Reply with quote

This is an application logic issue. YOU need to decide how your program is going to handle the empty file and do so. You could display a screen of empty records and allow only add operations, or you could display a different screen that says no data is available, or you could abend the transaction, or you could ...

However, basically the choice comes down to YOU deciding what the application should do. We can advise, but ultimately it is YOUR choice.
Back to top
View user's profile Send private message
mohammad amir ashraff

New User


Joined: 08 Feb 2008
Posts: 23
Location: Hyderabad

PostPosted: Tue Apr 10, 2012 8:02 pm    Post subject:
Reply with quote

Thank you Robert I got the idea now. Appreciate your suggestion.
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 B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 5 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts CICS startup problem John Poulakos CICS 3 Tue Jun 12, 2018 9:08 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm

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