View previous topic :: View next topic
|
Author |
Message |
Dhanya Praju
New User
Joined: 16 Jul 2008 Posts: 10 Location: Banglaore
|
|
|
|
Can we read ESDS file randomly in batch programs using RBA?IF so how? |
|
Back to top |
|
|
Apeksha
New User
Joined: 21 May 2008 Posts: 37 Location: Mumbai
|
|
Back to top |
|
|
somnath.barik
New User
Joined: 16 Aug 2007 Posts: 8 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: Banglaore
|
|
|
|
There is no key field in my file. Then how to start reading the file. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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: Banglaore
|
|
|
|
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: 8797 Location: Welsh Wales
|
|
|
|
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
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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: 235 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
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, 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 |
|
|
|