Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
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: 7936
Location: Bellevue, IA

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 CICS to Webservices safexc CICS 1 Sun Jan 22, 2017 5:49 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us