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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897


Difference between cobol and cobol-ii?

708


) How do u handle errors in BMS macro

1512


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

825


Are you comfortable in cobol or jcl?

643






What is the difference between PIC 9.99 and PIC9v99?

781


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

681


What is perform what is varying?

711


Differentiate between structured cobol programming and object-oriented cobol programming.

669


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


how to refer the data field?

1812


What is an in line perform? When would you use it? Anything else you wish to say about it.

646


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5065


How do define dynamic array in cobol.

671