Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Diffrence between extend and input output mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Diffrence between extend and input output mode
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: 1452
Location: Chicago, IL

PostPosted: Sat Nov 04, 2006 11:03 pm    Post subject: Re: extend mode
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    Post subject: Re: diffrence between extend and input output mode
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    Post subject: Re: diffrence between extend and input output mode
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    Post subject: Re: diffrence between extend and input output mode
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: 1187
Location: Bangalore,India

PostPosted: Mon Nov 27, 2006 3:08 pm    Post subject: Re: Diffrence between extend and input output mode
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us