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
 

 

random esds reading

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
aklima

New User


Joined: 25 Nov 2005
Posts: 18
Location: uae

PostPosted: Mon Dec 19, 2005 7:56 am    Post subject: random esds reading
Reply with quote

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

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Mon Dec 19, 2005 12:59 pm    Post subject: ESDS
Reply with quote

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

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Mon Dec 19, 2005 2:15 pm    Post subject: random esds reading
Reply with quote

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
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Mon Dec 19, 2005 2:41 pm    Post subject: Re: random esds reading
Reply with quote

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

New User


Joined: 23 Apr 2005
Posts: 13
Location: Bangalore

PostPosted: Mon Dec 19, 2005 4:07 pm    Post subject: Re: random esds reading
Reply with quote

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

New User


Joined: 25 Nov 2005
Posts: 18
Location: uae

PostPosted: Mon Dec 19, 2005 11:09 pm    Post subject: Re: random esds reading
Reply with quote

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

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Dec 29, 2005 2:23 pm    Post subject: random esds reading
Reply with quote

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
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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm


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