View previous topic :: View next topic |
Author |
Message |
hemakumarl Beginner
Joined: 19 Feb 2004 Posts: 7 Topics: 3
|
Posted: Mon Feb 13, 2006 8:55 am Post subject: Regarding READ PREVIOUS in cobol batch code |
|
|
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 |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Feb 13, 2006 10:01 am Post subject: |
|
|
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 |
|
|
hemakumarl Beginner
Joined: 19 Feb 2004 Posts: 7 Topics: 3
|
Posted: Tue Feb 14, 2006 9:14 am Post subject: |
|
|
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 |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Tue Feb 14, 2006 12:43 pm Post subject: |
|
|
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 |
|
|
MikeBaker Beginner
Joined: 04 May 2004 Posts: 96 Topics: 9
|
Posted: Tue Feb 14, 2006 4:28 pm Post subject: |
|
|
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 |
|
|
shiv_swami Beginner
Joined: 29 Nov 2003 Posts: 68 Topics: 14
|
Posted: Tue Feb 14, 2006 5:53 pm Post subject: |
|
|
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 |
|
|
hemakumarl Beginner
Joined: 19 Feb 2004 Posts: 7 Topics: 3
|
Posted: Wed Feb 15, 2006 9:33 am Post subject: |
|
|
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 |
|
|
MikeBaker Beginner
Joined: 04 May 2004 Posts: 96 Topics: 9
|
Posted: Wed Feb 15, 2006 4:01 pm Post subject: |
|
|
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 |
|
|
|
|