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: 8117
Location: East Dubuque, Illinois, USA

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: 8117
Location: East Dubuque, Illinois, USA

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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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