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

Diffrence between extend and input output mode


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
m.sanjiv

New User


Joined: 04 Nov 2006
Posts: 3

PostPosted: Sat Nov 04, 2006 9:37 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Nov 04, 2006 11:03 pm
Reply with quote

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
View user's profile Send private message
vijay_bn79

New User


Joined: 20 Nov 2006
Posts: 48
Location: Hyderabad

PostPosted: Fri Nov 24, 2006 5:55 pm
Reply with quote

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
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Mon Nov 27, 2006 1:42 pm
Reply with quote

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
View user's profile Send private message
vijay_bn79

New User


Joined: 20 Nov 2006
Posts: 48
Location: Hyderabad

PostPosted: Mon Nov 27, 2006 2:48 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Nov 27, 2006 3:08 pm
Reply with quote

Hi There,

I agree with Vijay there is no DELETE mode in COBOL
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top