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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
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: 8199
Location: East Dubuque, Illinois, 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 Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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