Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to open a COBOL file in VSAM?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Girijesh

New User


Joined: 19 Sep 2008
Posts: 14

PostPosted: Fri Dec 25, 2009 9:26 am    Post subject: How to open a COBOL file in VSAM?
Reply with quote

Hi,

I was asked this question in an interview:

How to open a COBOL file in VSAM? ( file can be of any format SEQ., INDEXD etc.)

I was clueless, please give your input.
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Dec 25, 2009 12:16 pm    Post subject:
Reply with quote

Quote:
How to open a COBOL file in VSAM?

My bad... yes, I am too clueless... icon_sad.gif

or Opening a VSAM data set in COBOL?

Quote:
please give your input.

Please phrase the question correctly.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8201
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 25, 2009 6:02 pm    Post subject:
Reply with quote

VSAM is an access method. COBOL is a computer language. COBOL can open files of various types, including VSAM files. VSAM must be invoked by another program and it handles the file processing. There is no such thing as a COBOL file -- but COBOL can manipulate files.

Your question, as worded, makes no sense.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Dec 25, 2009 8:52 pm    Post subject:
Reply with quote

From here, you will have all what you need.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR31/6.2.26?DT=20060329140556

Check format 2

Cheers

Pierre

Note : can we again and again encourage to find manuals location and read these manuals .... again and again
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Dec 26, 2009 5:55 am    Post subject: Reply to: How to open a COBOL file in VSAM?
Reply with quote

Quote:
Note : can we again and again encourage to find manuals location and read these manuals .... again and again

Yup, and providing the link helps as well.

We can surely repeat the guidance. . .

d
Back to top
View user's profile Send private message
Girijesh

New User


Joined: 19 Sep 2008
Posts: 14

PostPosted: Sat Dec 26, 2009 10:44 am    Post subject:
Reply with quote

Hello Friends, icon_smile.gif

I may not have received the exact answer but I've received better one, what I was expecting.

Thanks to Robert ,

And Dear PeD, I understand we cannot Skip Manuals but experience of you guys make things more clear, I must say that.

To my best I've stated the question the way I heard, maybe I was nervous over phone or interviewer was expecting the same explanation that Robert has written above , may be..

Thanks, icon_smile.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Dec 26, 2009 11:07 am    Post subject:
Reply with quote

Quote:
And Dear PeD, I understand we cannot Skip Manuals but experience of you guys make things more clear, I must say that.

That may be true, but my experience with this situation is that far too many people here seem to feel that their time is more valuable than the time of the folks who have diligently done their own research to find answers in manuals. They simply are too lazy to do their own homework.
Back to top
View user's profile Send private message
Girijesh

New User


Joined: 19 Sep 2008
Posts: 14

PostPosted: Sat Dec 26, 2009 12:59 pm    Post subject:
Reply with quote

Quote:
people here seem to feel that their time is more valuable than the time of the folks who have diligently done their own research to find answers in manuals. They simply are too lazy to do their own homework.


Got it.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us