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

How to open a COBOL file in VSAM?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 792
Location: Chennai, India

PostPosted: Fri Dec 25, 2009 12:16 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 25, 2009 6:02 pm
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: 459
Location: Belgium

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

From here, you will have all what you need.

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

Moderator Emeritus


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

PostPosted: Sat Dec 26, 2009 5:55 am
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top