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
 

 

fetching record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
bandi

New User


Joined: 21 Jul 2005
Posts: 12

PostPosted: Tue Aug 09, 2005 10:25 am    Post subject: fetching record
Reply with quote

How to fetch the last record in VSAM file without any sequential manner?After that I want to insert a record?

note: I don't know how many records in VSAM file?
Back to top
View user's profile Send private message

rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Tue Aug 09, 2005 11:33 am    Post subject:
Reply with quote

Bandi....What do umean by VSAM file? Is it KSDS,ESDS or RRDS. Please be clear.

Regards
Madhu
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Tue Aug 09, 2005 12:08 pm    Post subject: Hi
Reply with quote

assuming the file is KSDS

as we know the records can be accessed randomly .
move the key value into keyfield
chek if end of file if it is it is the last record.
In ksds u really cannot tell whether the record can be stored in the last position as the records are organized by the unique key field.I think that could be possible in esds.

if anything wrong please feel free to coment.
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Tue Aug 09, 2005 2:01 pm    Post subject: Re: fetching record
Reply with quote

Yes.. You are right... You can append records in ESDS.. But am nt sure with KSDS..

Experts...Please tell your views...
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Tue Aug 09, 2005 5:22 pm    Post subject:
Reply with quote

HI

ONE THING YOU CAN DO YOU WANT INSERT RECORD AT END MEANS

YOU CAN OPEN THAT FILE IN EXTEND MODE

OR IF IT IS KSDS VIJAYAMADHURI SAY THE PROCEDURE YOU CAN FALLOW THAT MANNER.

THANKS,
THANOOZ.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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