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
 

 

COBOL & VSAM Interview questions

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

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Fri Sep 09, 2005 4:05 pm    Post subject: COBOL & VSAM Interview questions
Reply with quote

I do not have mainfrmae access to try...please let me know the answers.

1) Can we display the condition variables using DISPLAY statement. I mean the variables declared with 88 Level?

2) Which represents the end of the SECTION in COBOL program. Like EXIT represents the end of the paragraph.

3) is it mandatory to code EXIT at the end of the paragraph?

4) what is the difference between Array and the Table in COBOL. I assume both are same, is this correct?

5) In VSAM KSDS, I have an alternate key and also there are duplicates in the alternate key. so i define in the FD section as
ALTERNATE KEY IS variable-name WITH DUPLICATES.
is this correct? Is anything else need to code extra in the JCL to represent the duplicates for alternate key?
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Fri Sep 09, 2005 6:40 pm    Post subject: Re: Need Answers
Reply with quote

Hi,


Quote:
1) Can we display the condition variables using DISPLAY statement. I mean the variables declared with 88 Level?


No we can not display 88 level verb

Quote:
2) Which represents the end of the SECTION in COBOL program. Like EXIT represents the end of the paragraph


SECTION is group of paragraph. In a section there may more than one Paragraph. and EXIT statement is mention at last Paragraph which represent end of SECTION. the other paragraphs do not have any EXIT statement.


Quote:
3) is it mandatory to code EXIT at the end of the paragraph?


Yes, It is mandatory to code EXIT at the end of paragraph if it is not in any SECTION. Means it is only Paragraph.


Quote:
4) what is the difference between Array and the Table in COBOL. I assume both are same, is this correct?


I guess, there is no ARRAY concept in COBOL. We can say that Table is similar to Array concept.



Regards
Rupesh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Sep 12, 2005 1:47 am    Post subject:
Reply with quote

Neither SECTIONS or Pgraphs require an EXIT stmt. The next SECTION will end a SECTION. The next SECTION or Pgraph will end a Pgraph.
Back to top
View user's profile Send private message
sgk_81

New User


Joined: 12 Sep 2005
Posts: 2

PostPosted: Mon Sep 12, 2005 3:18 pm    Post subject: Just a clarification...........
Reply with quote

All paragraphs need scope terminator(a full stop) to signal an end of paragraph, else you get a compile time error with the message "A period was required before procedure-name 'paragraph name(next para name)' "
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Sep 15, 2005 7:13 am    Post subject:
Reply with quote

Quote:
All paragraphs need scope terminator(a full stop) to signal an end of paragraph


As the Godfather once said "Dat goes widout sayin". icon_wink.gif
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Fri Sep 16, 2005 2:05 am    Post subject: Re: COBOL & VSAM Interview questions
Reply with quote

Hi All,

Thanks for the answers.

Can you please answer my 5th Question...

Kumar
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Sep 16, 2005 5:45 am    Post subject:
Reply with quote

Kumar,

You have to define the alt key via IDCAMS and you have to define it in a DD stmt in JCL when you reference the file in a pgm.

I think the dupes is an option of the DEFINE IDCAMS stmt.
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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