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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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