Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Use of START keyword

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
iknow

Senior Member


Joined: 22 Aug 2005
Posts: 582
Location: Colarado, US

PostPosted: Tue Oct 18, 2005 8:41 am    Post subject: Use of START keyword
Reply with quote

Hi All

I have a COBOL program in that they have used START keyword for comparison. Could anyone tell me what exactly START does.

Details of my program:

SELECT EMP ASSIGN TO MBREMP
ORGANIZATION IS INDEXED
ACCESS IS DYNAMIC
RECORD KEY IS EMP-KEY
FD EMP
LABEL RECORDS ARE STANDARD.
01 EMP-RECORD.
05 EMP-KEY PIC X(86).
Code:

START EMP KEY > EMP-KEY
Back to top
View user's profile Send private message
References
ikumar

Active User


Joined: 02 Aug 2005
Posts: 86

PostPosted: Tue Oct 18, 2005 11:36 am    Post subject: Re: Use of START keyword
Reply with quote

START keyword is used in case of skip-sequential processing...
In your code, it places the pointer, where the record key is greater than EMP-KEY in your EMP file. It just place the pointer there and you can start reading the records using READ NEXT/PREVIOUS commands.
Back to top
View user's profile Send private message
iknow

Senior Member


Joined: 22 Aug 2005
Posts: 582
Location: Colarado, US

PostPosted: Tue Oct 18, 2005 12:50 pm    Post subject: Re: Use of START keyword
Reply with quote

Thanks ikumar. Now I got a clear understanding.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1