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
 
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot.. EDS 2
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast L&T 4
How can you display the SPOOL information ?   2
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend? IBM 2
What is a scope terminator? Give examples.   2
should I use Go back in the main program ? Yes we can use Go back in main program as well. Xansa 2
what are the control characters used in reports   1
can we display comp-3 variables. if we want to display what we have to do . give me one example CGI 6
hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........   1
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?   6
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER   4
I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."   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