Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / rajini

We wont get data exception error (SOC7) , the program will
go fine , But the value in b will be junk.

Is This Answer Correct ?    20 Yes 11 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / sumanth toom

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 ?    9 Yes 2 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / rajeumesh

Answer 2 is correct

Is This Answer Correct ?    6 Yes 1 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / krishnarao

Ans 2 is correct. we wont get soc7.

Is This Answer Correct ?    5 Yes 0 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / vikas p o

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 ?    4 Yes 0 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / amjith pillai

01 a pic x(4) value 'abcd'
01 b pic 9(3)

Yes, you can move. Try just a move and display B. you will
get abc.

But if you go for an operation (add, move to comp variable
etc) then you will hit SOC7

Is This Answer Correct ?    4 Yes 0 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / mime

No. You would encounter a data error - abend SOC7

Is This Answer Correct ?    13 Yes 12 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / barani dharan

Answer 2 is correct i have tested.

Is This Answer Correct ?    5 Yes 5 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / mainframe user

why do you want to do this? you know it is not compatible.
there is no point in doing analysis for this stuff.

Is This Answer Correct ?    0 Yes 0 No

01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would..

Answer / satish

Yes We can move that.But I have another question.if we
move 'abcd' to comp variable then how it will get stored??I
know if we move theb it wont abend but dbt know how it will
be stored:-(

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


how the control comes back from subprogram to mainprogram

3 Answers   IBM,


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


why 02 level number can't be use as a separate level number like 01 or 77 ?

3 Answers  


what is the use of outrecord?

0 Answers  


What is the difference between PIC 9.99 and 9v99?

7 Answers  


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


How is sign stored in a COMP field ?

3 Answers   Accenture,


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

0 Answers  


level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


Categories