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
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the difference between external and global variables in COBOL?
How do get the result of your program directly on your pc?
how do you reference the esds vsam file formats from cobol programs
What is amode(24)?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the usage of comp fields in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
how do you reference the printer file formats from cobol programs
What is rmode(24)
what is search and searchall?what is the diffrence between them?give an best example?
How you can read the file from bottom?
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.
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?
What is the difference between structured cobol programming and object alternativelyiented cobol?