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

How to handle Empty Input File to CICS screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 10, 2012 6:14 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Apr 10, 2012 7:07 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top