View previous topic :: View next topic
|
Author |
Message |
mohammad amir ashraff
New User
Joined: 08 Feb 2008 Posts: 23 Location: Hyderabad
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
mohammad amir ashraff
New User
Joined: 08 Feb 2008 Posts: 23 Location: Hyderabad
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
mohammad amir ashraff
New User
Joined: 08 Feb 2008 Posts: 23 Location: Hyderabad
|
|
|
|
Thank you Robert I got the idea now. Appreciate your suggestion. |
|
Back to top |
|
|
|