01 a pic s9(5) value -12345,
if we disply a , the sign will overpunched with last digit
but i need to get the miuns sign in the result?
Answer Posted / sreejith
01 a pic -9(5) value -12345
or
01 a pic x(6) value '-12345'
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the Purpose of Pointer in the string?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to print 10 to 1 if the input have only 10 digit number?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is a SSRANGE and NOSSRANGE?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between Call and a Link?
what is s000 u4087 error? please give the all error codes in cobol,jcl.