View previous topic :: View next topic
|
Author |
Message |
m.sanjiv
New User
Joined: 04 Nov 2006 Posts: 3
|
|
|
|
what is the diffrence between extend and input output mode ?
Title changed from "extend mode" to "diffrence between extend and input output mode" : Priyesh. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
what is the diffrence between extend and input output mode ? |
A file should be opened in EXTEND mode, when you want to append the data in the file after the last record.
I-O mode, you can Read/Update/both records.
See here for complete inform'n. |
|
Back to top |
|
|
vijay_bn79
New User
Joined: 20 Nov 2006 Posts: 48 Location: Hyderabad
|
|
|
|
whenever we want to Append the records to the file we should open the file in Extend mode only
If we want to Re-Write the record then we should open the file in I-O mode only(i.e Input Output Mode)
Thanks |
|
Back to top |
|
|
kgumraj
Active User
Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
Hello,
In any file handling we have 4 modes
Input
Output
Extend
Delete
1. Input mode--> When ever we need to read the records, we use this. while suing this others can acess the data in view mode only ( Again it depends on the JCL DISP parameter)
2. Output mode--> When ever you want to write a freash into the dataset you use this mode. Note: When using this if some data exist it will be deleted.
Extend Mode--> when ever you need the data to be appened, continue for the last record you use it. when using this mode you can both read and write the data.
4. Delect mode--> this is for the record to be deleted. |
|
Back to top |
|
|
vijay_bn79
New User
Joined: 20 Nov 2006 Posts: 48 Location: Hyderabad
|
|
|
|
kgumraj wrote: |
Hello,
In any file handling we have 4 modes
Input
Output
Extend
Delete
1. Input mode--> When ever we need to read the records, we use this. while suing this others can acess the data in view mode only ( Again it depends on the JCL DISP parameter)
2. Output mode--> When ever you want to write a freash into the dataset you use this mode. Note: When using this if some data exist it will be deleted.
Extend Mode--> when ever you need the data to be appened, continue for the last record you use it. when using this mode you can both read and write the data.
4. Delect mode--> this is for the record to be deleted. |
Hi..,
There is no DELETE Mode in COBOL
4 modes in cobol are
INPUT
OUTPUT
EXTEND
I-O
pls correct me if i am wrong |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
I agree with Vijay there is no DELETE mode in COBOL |
|
Back to top |
|
|
|