ALLInterview.com :: Home Page Forum9.Com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> MainFrame >> IBM-MainFrame >> COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
Question
how will u find out 3rd week's 2nd day using occurs ?
 Question Submitted By :: Suresh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how will u find out 3rd week's 2nd day using occurs ?
Answer
# 1
01 WS-TEMP VALUE ZEROS.
  03 WS-WEEK   OCCURS 5 TIMES
     05 WS-DAY PIC 9 OCCURS 7 TIMES


THE THIRD WEEK AND 2ND DAY CAN BE FOUND BY WS-TEMP(3,2)
 
Is This Answer Correct ?    1 Yes 1 No
Shweta
 
  Re: how will u find out 3rd week's 2nd day using occurs ?
Answer
# 2
Sweta you cant use WS-TEMP because only the field_name in 
the last occurs clause or an element in a level below it 
can be used to refer to the table.
 
 So it will be WS-DAY (3,2).
 
Is This Answer Correct ?    3 Yes 0 No
Ginni
 
 
 
  Re: how will u find out 3rd week's 2nd day using occurs ?
Answer
# 3
yes ginni is correct
 
Is This Answer Correct ?    0 Yes 0 No
Chinni
 
 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
What will happen if we generate GDG +2 version instead of +1 version? T-systems1
What is the linkage section?  2
What COBOL construct is the COBOL II EVALUATE meant to replace?  1
What is SDSF?  2
When would you use in-line perform?  1
why occurs clause not mentioned in 01 level Tesco3
Identify the invalid dataname from the following: (a) SAVINGS-ACCOUNT (b) ANNUAL-ALLOCATION-FOR-OVERHEAD (c) SAMOUNT250 (d) 12DEMAND TCS2
HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER Patni5
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above TCS2
How can you pass values from COBOL program to non-COBOL programs?  2
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?  2
When can the USING phrase be included in the call statement ?  1
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable TCS2
Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly. TCS4
What is an explicit scope terminator?  1
.How to add one input & one Out file in existing cobol program. how approach tell me step by step. Syntel2
consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250 TCS3
How do we get current date from system with century?  2
COMP field occupy ?  2
01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it. FirstApex7
 
For more COBOL Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com