IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

fetching record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top