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
 

 

STARTBR command on an empty VSAM file

 
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: Wed Apr 11, 2012 6:55 am    Post subject: STARTBR command on an empty VSAM file
Reply with quote

Hi,

I wanted to know what would be the EIBRESP code if I was executing a STARTBR command on an EMPTY VSAM file in a CICS program.

I need to know this so that I can handle the EMPTY VSAM file condition in my program.

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

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 11, 2012 7:13 am    Post subject: Reply to: STARTBR command on an empty VSAM file
Reply with quote

You'll raise a NOTFND condition, providing your KEYLENGTH is the full-length (not GENERIC) and the RIDFLD is all X'00's.

You can experiment with this using IBM Transid CECI.

The EIBRCODE=X'810000000000'

The EIBRESP=F'13' (X'0D')
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Wed Apr 11, 2012 8:14 am    Post subject:
Reply with quote

You are defining "EMPTY VSAM" as a VSAM file that was opened for output, had a record written, and that record was deleted, right?
Back to top
View user's profile Send private message
mohammad amir ashraff

New User


Joined: 08 Feb 2008
Posts: 23
Location: Hyderabad

PostPosted: Wed Apr 11, 2012 8:33 am    Post subject:
Reply with quote

Robert Sample wrote:
You are defining "EMPTY VSAM" as a VSAM file that was opened for output, had a record written, and that record was deleted, right?


yes that's right.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Wed Apr 11, 2012 8:44 am    Post subject:
Reply with quote

if you would bother to look at the manual,
you can see, in addition to syntax,
but a list of conditions that can affect (or be effected) by the CICS API Instruction.
in this case STARTBR

there's all kinds of stuff to be found in the manuals.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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