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 (849)
 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 (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
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 ?    6 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
 
what is the diff b/w select stsmt and cursor ?   2
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB Polaris 6
Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.   1
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s. Xansa 3
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp CTS 3
what is Pic 9v99 Indicates?   2
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?   5
in a indexed file what is procedure for read the records from 12 to 18. please give the code example L&T 2
hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps iNautix 5
in cobol perform stmt whether it first checks the condition or not   9
what is the difference between start and startbr?   2
how can we code index in an array of cobol pgm? Wipro 1
 
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