View previous topic :: View next topic
|
Author |
Message |
aklima
New User
Joined: 25 Nov 2005 Posts: 18 Location: uae
|
|
|
|
hi
can anyone tell me is there any option how to read esds file randomly?
if posible give the description detaily
thanks in
Success is not a destination that you ever reach. Success is the quality of your journey. --Jennifer James |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
ESDS file cannot be read randomly. since it's a sequential file in VSAM v dont have the option for ESDS file to read it randomly |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
HI,
You can read ESDS randomly by using RBA. (Relative byte address).
EXEC CICS
read dataset("ds name")
into("WS-rec")
rba("address")
end cics.
you can find this in any cics books. |
|
Back to top |
|
|
gowtham_1982 Warnings : 1 Active User
Joined: 02 Dec 2005 Posts: 109
|
|
|
|
hai aklima,
in addition to the reply of raghunathns, i want to add that, we can access an ESDS randomly from vsam through the RBA with the option FROM ADDRESS and TO ADDRESS option.
corrections welcomed,
gowtham |
|
Back to top |
|
|
Balasubramanian
New User
Joined: 23 Apr 2005 Posts: 13 Location: Bangalore
|
|
|
|
Hi,
Random access in ESDS is not possible by using COBOL, but the same can be done by using CICS
Thanks & Regards,
Balasubramanian S |
|
Back to top |
|
|
aklima
New User
Joined: 25 Nov 2005 Posts: 18 Location: uae
|
|
|
|
hi to all,
first of all thanx for all the answers.
hey i got the answer for random reading.
see why not decribing a data variable in working storage section with occurs clause and the moving the file to that variable and then read the variable randomly.
u just try out this cause i can tell only but cant do this practically. |
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
hi aklima,
ur solution is good if there are very few records.But if there are some millions of records means...then the program might take more storage space which is not accepted.... |
|
Back to top |
|
|
|