ALLInterview.com :: Home Page            
 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  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> MainFrame >> IBM MainFrame >> COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions (847)
 JCL interview questions  JCL Interview Questions (700)
 CICS interview questions  CICS Interview Questions (447)
 DB2 interview questions  DB2 Interview Questions (667)
 IMS interview questions  IMS Interview Questions (79)
 IDMS interview questions  IDMS Interview Questions (6)
 Natural interview questions  Natural Interview Questions (39)
 ADABAS interview questions  ADABAS Interview Questions (7)
 REXX interview questions  REXX Interview Questions (21)
 Assembler interview questions  Assembler Interview Questions (29)
 CLIST interview questions  CLIST Interview Questions (1)
 QMF interview questions  QMF Interview Questions (4)
 MVS interview questions  MVS Interview Questions (11)
 OS390 interview questions  OS390 Interview Questions (9)
 OS 2 interview questions  OS 2 Interview Questions (0)
 VSAM interview questions  VSAM Interview Questions (177)
 QSAM interview questions  QSAM Interview Questions (3)
 Sysplex interview questions  Sysplex Interview Questions (5)
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions (128)
Question
how you will define variables length in cobol.
 Question Submitted By :: Dhasani
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how you will define variables length in cobol.
Answer
# 1
We can define variable length in cobol in the File section
as :
RECORDING MODE IS V OR VB ( where V stands for variable and
VB stands for variable block )
 
Is This Answer Correct ?    3 Yes 0 No
Shamina
 
  Re: how you will define variables length in cobol.
Answer
# 2
file section.
fd recseqv
recording mode is v
record varying from 3 to 80 characters.
01 recseqv-fd-record pic x
occurs 3 to 80 times
depending on ws-record-length.
 
Is This Answer Correct ?    0 Yes 1 No
App
 
 
 
  Re: how you will define variables length in cobol.
Answer
# 3
The variable length in cobol can be defined as s9(4) usage
comp.
 
Is This Answer Correct ?    1 Yes 0 No
Sree
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
How to read a 100 record from a file through cobol?   2
How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program. TCS 10
A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25 TCS 2
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division. TCS 3
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ? Microsoft 3
How to resolve the soc4 and soc7 errors?   5
How much salary you are expecting? If they ask in an interview, what we have to tell? Wipro 5
Give some advantages of REDEFINES clause?   2
How to execute a set of JCL statements from a COBOL program? Patni 2
What are decleratives in COBOL ? Xansa 1
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is TCS 12
Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.   2
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com