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 (851)
 JCL interview questions  JCL Interview Questions (700)
 CICS interview questions  CICS Interview Questions (448)
 DB2 interview questions  DB2 Interview Questions (668)
 IMS interview questions  IMS Interview Questions (80)
 IDMS interview questions  IDMS Interview Questions (6)
 Natural interview questions  Natural Interview Questions (41)
 ADABAS interview questions  ADABAS Interview Questions (8)
 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
01 xxx pic 9(4).
01 yyy pic 9(6).

move 123456 into yyy.
move yyy to xxx.

display yyy.

what would be the value of yyy
 Question Submitted By :: COBOL
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
HAI ALL U R WRITING DIFFERENT ANSWERS BUT THEY ARE ASKING
FOR YYY VALUE IT WONT BE CHANGED IT HAS VALUE OF 123456
BECAUSE ITS PIC CLAUSE IS 9(6) OK THEN DISPLAY YYY IT WIL
DISPLAY 123456 OK ANY DOUBTS
 
Is This Answer Correct ?    49 Yes 3 No
Jaganmohanreddy
 
Answer
# 2
answer is 123456 
Is This Answer Correct ?    35 Yes 4 No
Jaganmohanreddy
 
 
 
Answer
# 3
YYY VALUE NOT CHANGE.
ie 123456
 
Is This Answer Correct ?    26 Yes 1 No
V@m$i
 
Answer
# 4
In numeric number alingment is right to left
truncation is done in left side
the datatype size of y is 6
so value of y is 123456
 
Is This Answer Correct ?    12 Yes 2 No
Siba
 
Answer
# 5
YYY : 123456

XXX : 3456
 
Is This Answer Correct ?    9 Yes 0 No
Adithya
 
Answer
# 6
numeric number alingment is right to left
truncation is done in left side
the datatype size of y is 6
so value of y is 123456
 
Is This Answer Correct ?    7 Yes 2 No
Gangadhara.m
 
Answer
# 7
Here if u display YYY it will 123456
and if u display xxx it will 3456

Hope its clear
 
Is This Answer Correct ?    1 Yes 0 No
Mahaveer
 
Answer
# 8
we cannot move yyy to xxx ....see the data length 
Is This Answer Correct ?    2 Yes 2 No
Vjay
 
Answer
# 9
12345 
Is This Answer Correct ?    8 Yes 9 No
Vishal
 
Answer
# 10
OUTPUT:
----------
3456
 
Is This Answer Correct ?    9 Yes 14 No
V@m$i
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad   27
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array? Satyam 3
can we read in input the file with a variable length ? please , how ..could you help me ? EDS 3
how to change picture class of copy book variable inside program?   2
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length TCS 2
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19. Steria 2
A s9(4). B v9(4) value 0.21 can i move this?   3
What are the differences bitween cobol and cobol-2? Wipro 1
what is the difference between Plan & package IBM 3
tell me about examine inspect and evaluate ? CTS 2
can anyone explain me the concept of COMP-4 PLEASE??   2
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ? IBM 7
 
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