MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regarding READ PREVIOUS in cobol batch code

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
hemakumarl
Beginner


Joined: 19 Feb 2004
Posts: 7
Topics: 3

PostPosted: Mon Feb 13, 2006 8:55 am    Post subject: Regarding READ PREVIOUS in cobol batch code Reply with quote

Hi,

This is regarding READ PREVIOUS record in the cobol batch code. I would like to know is there any command to read previous record in the KSDS file using COBOL batch code.

Also I would like to know what is basic difference between SEQUENTAIL and DYNAMIC access modes. Since we are having all the options in SEQUENTAIL what is DYNAMIC defined for.

Thanks in advance.

Regards,
Hemakumar
_________________
Hemakumar L.
Back to top
View user's profile Send private message Yahoo Messenger
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Feb 13, 2006 10:01 am    Post subject: Reply with quote

Regarding your first question: As far as I know, there is no 'READ PREVIOUS' statement in COBOL on mainframes.

Regarding your second question: You'll find full answer in the fine manual.

O.
________
Formula BMW


Last edited by ofer71 on Sat Feb 05, 2011 11:32 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
hemakumarl
Beginner


Joined: 19 Feb 2004
Posts: 7
Topics: 3

PostPosted: Tue Feb 14, 2006 9:14 am    Post subject: Reply with quote

Thanks for your reply.

I am looking for an option to read previous record in the KSDS file when the pointer is at particular record. If we condsider CICS we have option READPREV, on the same lines is there any command to read previous records in the bacth code.

Regards,
Hemakumar
Back to top
View user's profile Send private message Yahoo Messenger
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Feb 14, 2006 12:43 pm    Post subject: Reply with quote

No.

O.
________
Honda H4 transmission


Last edited by ofer71 on Sat Feb 05, 2011 11:33 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Tue Feb 14, 2006 4:28 pm    Post subject: Reply with quote

What the fine manual will not tell you is that RANDOM will cause NIS-mode splits, but DYNAMIC will cause SIS-mode splits; ie: there are two different types of CA/CI split. If you choose the wrong type of split for your data, then performance can go out the door. And don't mix update modes on the same file.
Back to top
View user's profile Send private message
shiv_swami
Beginner


Joined: 29 Nov 2003
Posts: 68
Topics: 14

PostPosted: Tue Feb 14, 2006 5:53 pm    Post subject: Reply with quote

Hemakumar,

To read previous record, you can always move just record into a variable working storage and use it whenever you require to. I can share an example if needed.
_________________
Regards,
Shivprakash
Back to top
View user's profile Send private message Yahoo Messenger
hemakumarl
Beginner


Joined: 19 Feb 2004
Posts: 7
Topics: 3

PostPosted: Wed Feb 15, 2006 9:33 am    Post subject: Reply with quote

Thanks MikeBaker and Shiv.

I am interested to know about NIS-mode and SIS-mode splits. Can you please provide me the link for same.
_________________
Hemakumar L.
Back to top
View user's profile Send private message Yahoo Messenger
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Wed Feb 15, 2006 4:01 pm    Post subject: Reply with quote

This information comes from Ron Ferguson, the world's foremost expert on VSAM. The information is in his book called "VSAM". He also recently presented at SHARE, and presented two great sessions on VSAM performance. You'll need to logon as a trial member (free of charge), and goto the SHARE 2004 Longbeach session. You'll find 2 PDFs there.

www.share.org Sorry I don't have the exact urls on me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group