IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we read ESDS file randomly in batch programs


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dhanya Praju

New User


Joined: 16 Jul 2008
Posts: 10
Location: Banglaore

PostPosted: Wed Jul 16, 2008 12:24 pm
Reply with quote

Can we read ESDS file randomly in batch programs using RBA?IF so how?
Back to top
View user's profile Send private message
Apeksha

New User


Joined: 21 May 2008
Posts: 37
Location: Mumbai

PostPosted: Wed Jul 16, 2008 12:53 pm
Reply with quote

Hi,

Check the following link on the forum, hope this helps you

ibmmainframes.com/viewtopic.php?t=160&start=0&postdays=&postorder=&highlight=
Back to top
View user's profile Send private message
somnath.barik

New User


Joined: 16 Aug 2007
Posts: 8
Location: mumbai

PostPosted: Wed Jul 16, 2008 1:07 pm
Reply with quote

Move RBA to key field and use start verb to find the position.
Back to top
View user's profile Send private message
Dhanya Praju

New User


Joined: 16 Jul 2008
Posts: 10
Location: Banglaore

PostPosted: Fri Jul 18, 2008 5:50 pm
Reply with quote

There is no key field in my file. Then how to start reading the file.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 18, 2008 6:05 pm
Reply with quote

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
View user's profile Send private message
Dhanya Praju

New User


Joined: 16 Jul 2008
Posts: 10
Location: Banglaore

PostPosted: Fri Jul 18, 2008 6:14 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 18, 2008 6:24 pm
Reply with quote

Probably using an AIX, which I believe is the only way that you can read an ESDS randomly.

But I am not a programmer icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 18, 2008 6:33 pm
Reply with quote

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
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jul 18, 2008 9:08 pm
Reply with quote

In one book i read that CICS process only either KSDS using key and RRDS using RBA.

Regards
R KARTHIK
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Fri Jul 18, 2008 11:20 pm
Reply with quote

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 icon_wink.gif

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top