If i have a variable
A pic 9(2) value 10
Compute A = a - 100

what will be the value of A and will there be any error
becoz of the Negative value

Answer Posted / garry

From above you will get answer as :

90 (without any sign'-').

If you Code S9(02).
Result : 9} (-90)
To get -90 properly, use SIGN is Leading or trailing.

Any difference, please write at : thespider390@hotmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


What is the difference between external and global variables in COBOL?

811


How do get the result of your program directly on your pc?

1878


how do you reference the esds vsam file formats from cobol programs

627


What is amode(24)?

680






Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

678


What is the usage of comp fields in cobol?

653


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

704


how do you reference the printer file formats from cobol programs

655


What is rmode(24)

676


what is search and searchall?what is the diffrence between them?give an best example?

5540


How you can read the file from bottom?

658


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.

5053


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6822


What is the difference between structured cobol programming and object alternativelyiented cobol?

751