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...


What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field?

Answers were Sorted based on User's Feedback



What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / varun v

1) Move Spaces to Numeric field:

Here program would give compilation error saying Spaces
to Numeric integer did not follow the "MOVE" statement
compatibility rules.

2) Move Zeroes to Alphabetic field:

Would work fine with Movement of Zeroes to the
Alphabetic field.

Is This Answer Correct ?    20 Yes 4 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / aliya

It will give SOC7.

Is This Answer Correct ?    9 Yes 5 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / ram.g

ans to last ans

anything you can move to alpha...provided ..ur input is w/n
quotes...


ans to ur qn...

its quite possible by using redefine command...

the field will be sharing same memorylocation..

eg: 05 ws-num pic 99
10 ws-char redefines ws-num pic x(2)

move 12 to ws-num
move 'ab' to ws-char

Is This Answer Correct ?    4 Yes 0 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / ram.g

sorry for post 3 2nd ans

it supposed for the qn ...x(7) to 9(9) nd vice versa..
plz refer the qn...

Is This Answer Correct ?    3 Yes 0 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / sivakumar sekharannair

compile error will occure if zeroes moved to alphabetic
field or spaces moved to numeric field.

Is This Answer Correct ?    5 Yes 4 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / jayaprabhu

spaces to umeric field will give data exp error soc7

bocz we cant move the spaces to numeric field

Zeroes to alphabetic we cant bcoz zeroes is numeric we cant
move into the alphabetic if we move it will give soc7

But using redefines we can moves num-alpa, alpa -num
these kind we use for copybook where in if you have one
field need to change for num/alpa.instead going for new
copybook .

Is This Answer Correct ?    1 Yes 1 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / thavasi

all above answers are incorrect.


Move SPACES to numeric field:
=============================

Moving spaces/non-numeric to numeric won't give any
compilation error or S0C7.

S0C will occur only when u do computation with non-numeric data.

ZERO to alphabetic field:
========================

MOVing ZEROS to alphabetic - will result in compilation error.

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More COBOL Interview Questions

diffrence between renames and redifnes with examples

3 Answers   IBM,


How to retrive the 9th records out of ten records using the cobol program ?

3 Answers   UST,


when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible

1 Answers   Patni,


can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


what is the difference between Plan & package?

1 Answers   IBM,


what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 57397 is moved to pic $$,$$9.

5 Answers  


can we use variable picture clause as xx.99 in cobol.

3 Answers  


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


Can a Search can be done on a table with or without Index?

0 Answers  


What is the difference between comp and comp-3?

0 Answers  


What is the different between index and subscript?

3 Answers  


Categories