MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File handling in CICS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Sagitha George
Beginner


Joined: 23 Jun 2003
Posts: 8
Topics: 3

PostPosted: Mon Jun 23, 2003 3:12 am    Post subject: File handling in CICS Reply with quote

Hello
While using CICS, one is not supposed to used any COBOL verbs used for handling files..While CICS does provide mechanisms for READ,WRITE,DELETE,READNEXT etc.., what are the mechanisms for opening & closing files? Or is it that there is no such concept of opening or closing files in the CICS env.? In that case,does that mean that CICS opens all files at startup or does it do so at the first READ that it encounters for a file?Please help ...

TIA
Sagitha
Back to top
View user's profile Send private message
satjag
Beginner


Joined: 19 Dec 2002
Posts: 19
Topics: 2

PostPosted: Mon Jun 23, 2003 5:59 am    Post subject: Reply with quote

It is not required to open or close file explicity in CICS programs.But the file should be in open status in the CICS environment for a read to be executed succesfully.

You can read about the STARTBR & ENDBR commands,it will be of help.

Hope this helps...
_________________
Regards,
satjag
Back to top
View user's profile Send private message
Sagitha George
Beginner


Joined: 23 Jun 2003
Posts: 8
Topics: 3

PostPosted: Mon Jun 23, 2003 7:33 am    Post subject: Reply with quote

Thanks.
But how this open or close status achieved?Is it done using CEMT I FILE('symbolic file name').....Or does the CICS do on its own on startup or when it finds the first READ for that file?

Regards
Sagitha Razz
Back to top
View user's profile Send private message
prakal
Beginner


Joined: 14 Mar 2003
Posts: 22
Topics: 1

PostPosted: Mon Jun 23, 2003 9:16 am    Post subject: Reply with quote

Sagitha,

You can set up a file to be 'open enabled' at first reference by setting up parameters in FCT.

If you have access to CEDC(or CEDA) transaction you should be able to view these parameters.

Type in

Code:

CEDC E G(*) FI(DDNAME)


The parameters that you would look for will be:
INITIAL STATUS
STAtus : Enabled | Disabled | Unenabled
Opentime : Firstref | Startup
DIsposition : Share | Old

Prakal
Back to top
View user's profile Send private message
Sagitha George
Beginner


Joined: 23 Jun 2003
Posts: 8
Topics: 3

PostPosted: Mon Jun 23, 2003 9:21 pm    Post subject: Reply with quote

Prakal
Thanks a lot for that great piece of self-explanatory description...
Sagitha
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group