View previous topic :: View next topic |
Author |
Message |
Sagitha George Beginner
Joined: 23 Jun 2003 Posts: 8 Topics: 3
|
Posted: Mon Jun 23, 2003 3:12 am Post subject: File handling in CICS |
|
|
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 |
|
 |
satjag Beginner

Joined: 19 Dec 2002 Posts: 19 Topics: 2
|
Posted: Mon Jun 23, 2003 5:59 am Post subject: |
|
|
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 |
|
 |
Sagitha George Beginner
Joined: 23 Jun 2003 Posts: 8 Topics: 3
|
Posted: Mon Jun 23, 2003 7:33 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
prakal Beginner
Joined: 14 Mar 2003 Posts: 22 Topics: 1
|
Posted: Mon Jun 23, 2003 9:16 am Post subject: |
|
|
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 |
|
 |
Sagitha George Beginner
Joined: 23 Jun 2003 Posts: 8 Topics: 3
|
Posted: Mon Jun 23, 2003 9:21 pm Post subject: |
|
|
Prakal
Thanks a lot for that great piece of self-explanatory description...
Sagitha |
|
Back to top |
|
 |
|
|