Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we read ESDS file randomly in batch programs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can we read ESDS file randomly in batch programs
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    Post subject:
Reply with quote

Hi,

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

http://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    Post subject: hi
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    Post subject: Reply to: Can we read ESDS file randomly in batch programs
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: 7931
Location: Bellevue, IA

PostPosted: Fri Jul 18, 2008 6:05 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 18, 2008 6:24 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Fri Jul 18, 2008 6:33 pm    Post subject:
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    Post subject: Reply to: Can we read ESDS file randomly in batch programs
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 18, 2008 11:20 pm    Post subject: Re: Can we read ESDS file randomly in batch programs
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us