View previous topic :: View next topic
|
Author |
Message |
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
sgk_81
New User
Joined: 12 Sep 2005 Posts: 2
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Quote: |
All paragraphs need scope terminator(a full stop) to signal an end of paragraph |
As the Godfather once said "Dat goes widout sayin". |
|
Back to top |
|
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
Hi All,
Thanks for the answers.
Can you please answer my 5th Question...
Kumar |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|