|
|
| Author |
Message |
Dhanya Praju
New User
Joined: 16 Jul 2008 Posts: 10 Location: Bombay
|
|
|
|
| Can we read ESDS file randomly in batch programs using RBA?IF so how? |
|
| Back to top |
|
 |
References
|
|
 |
Apeksha
New User
Joined: 21 May 2008 Posts: 27 Location: Mumbai
|
|
| Back to top |
|
 |
somnath.barik
New User
Joined: 16 Aug 2007 Posts: 9 Location: mumbai
|
|
|
|
| Move RBA to key field and use start verb to find the position. |
|
| Back to top |
|
 |
Dhanya Praju
New User
Joined: 16 Jul 2008 Posts: 10 Location: Bombay
|
|
|
|
| There is no key field in my file. Then how to start reading the file. |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 893 Location: Atlanta, GA
|
|
|
|
From the Enterprise COBOL Programming Guide:
| Quote: |
1.10.2.4 Specifying access modes for VSAM files
You can access records in VSAM sequential files only sequentially. |
And just to clarify, ESDS means entry-sequenced dataset which means VSAM sequential.
So the answer to your question is no, you cannot read an ESDS randomly by using the RBA. |
|
| Back to top |
|
 |
Dhanya Praju
New User
Joined: 16 Jul 2008 Posts: 10 Location: Bombay
|
|
|
|
Thanks.. my file is ESDS- Vsam sequential file.
But I would like to know
how the ESDS file is read randomly in cics using RBA by passing it to the RIDFLD keyword, since there is no rba or key field in the file ? |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3511 Location: Brussels once more ...
|
|
|
|
Probably using an AIX, which I believe is the only way that you can read an ESDS randomly.
But I am not a programmer  |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 893 Location: Atlanta, GA
|
|
|
|
| Your original problem statement was for BATCH. My answer was for batch. CICS uses a different way to read a file, not the COBOL method. The way CICS reads the file allows use of the RBA in the RIDFLD to directly access an ESDS record; this cannot be done in batch. |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 169 Location: Chennai
|
|
|
|
In one book i read that CICS process only either KSDS using key and RRDS using RBA.
Regards
R KARTHIK |
|
| Back to top |
|
 |
Bill O'Boyle
Senior Member
Joined: 14 Jan 2008 Posts: 334 Location: Orlando, FL, USA
|
|
|
|
For truly Random Reads all over the ESDS Base Cluster from a Batch caller, the only way that I know is via an ASSEMBLER sub-program, but I've been wrong before
Bill |
|
| Back to top |
|
 |
|
|