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
 
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it) CTS 13
if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit. IBM 1
Is It Possible to Update or change in VIEW Mode? CSC 5
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?   5
what are the error codes in cobol, db2, cics, vsam , and jcl TetraSoft 1
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?   4
What divisions, sections and paragraphs are mandatory for a COBOL program?   8
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... TCS 1
how you will define variables length in cobol. Temenos 3
is it possible to declare index in cobol program? if it is not why its tell me pls   3
can we use COPY statement in w-s section? how?   3
How do u initialize an array? CTS 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