ALLInterview.com :: Home Page KalAajKal.com
 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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
01 a pic x(4) value 'abcd'
01 b pic 9(3) 
can we move from a to b.if possible what would be stored in 
b.
 Question Submitted By :: Pratap
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 1
No. You would encounter a data error - abend SOC7
 
Is This Answer Correct ?    10 Yes 8 No
Mime
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 2
We wont get data exception error (SOC7) , the program will 
go fine , But the value in b will be junk.
 
Is This Answer Correct ?    10 Yes 7 No
Rajini
 
 
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 3
Answer 2 is correct i have tested.
 
Is This Answer Correct ?    3 Yes 4 No
Barani Dharan
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 4
YES, we can move . But the a will contained only ABC and D 
will get truncated
 
Is This Answer Correct ?    4 Yes 7 No
Manish Shelke
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 5
Ans 2 is correct and to add further to that..when the 
program tries to use this variable 'b', then it will give 
S0C7
 
Is This Answer Correct ?    7 Yes 1 No
Sumanth Toom
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 6
Answer 2 is correct
 
Is This Answer Correct ?    5 Yes 1 No
Rajeumesh
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 7
Ans 2 is correct. we wont get soc7.
 
Is This Answer Correct ?    3 Yes 0 No
Krishnarao
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 8
no. cannot. because b is numeric. alpanumeric cannot move 
to numeric field.
 
Is This Answer Correct ?    2 Yes 4 No
Chuvabe
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 9
abc will moved to a and 'd' will get teminating
 
Is This Answer Correct ?    1 Yes 2 No
Sadaf Rehan
 
  Re: 01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
Answer
# 10
First thing, when write this code and compile will it 
compile sucessfully. If it compiles sucessfuly then if run 
JCL will it give SOC7 or not.

Did test it but got error during compliation something like 
"MOVE DID NOT FOLLOW COMPATIBILITY RULES".

Ppl can add to this...
 
Is This Answer Correct ?    1 Yes 0 No
Vikas P O
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Explain fixed length record in cobol? with suitable example IBM1
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.  2
What is Comm? IBM2
What is the Purpose of POINTER Phrase in STRING command  3
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a TCS2
what is the purpose of linkage section?  6
How include time & date in the report generation in cobol programing?  2
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES TCS5
study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level TCS2
for an INITIALIZE and what keyword allows for an override of the default.  2
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above TCS7
How will you find the currepted records in a file  1
In an EVALUATE statement, can I give a complex condition on a when clause?  1
Can JUSTIFIED be used for all the data types?  1
What is the different between index and subscript?  3
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree Merrill-Lynch2
what is the difference between start and startbr?  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?  4
How do you define a variable of COMP-1? COMP-2?  1
i want to learn mainframes. i completed MCA ,whats the future of mainframes  3
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com