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 / david
you will need two variables. Variable A where you put your
computation and variable B which will be displayed:
01 a pic s9(5) value -12345.
01 b pic -9(5).
or 01 b pic -zzzz9.
or 01 b pic 99999-.
or 01 b pic z(5)-.
or 01 b pic ----9.
MOVE A TO B.
DISPLAY B.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
) How do u handle errors in BMS macro
What is the difference between comp and comp-3?
Write a program that uses move corresponding.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Are you comfortable in cobol or jcl?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Why did you choose to work with ibm mainframe cobol programming?
Can we change the password using ALTER? anyone tried and changed?
how to access the file from prodution from changeman tool and to submit a file to production
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the difference between perform … with test after and perform … with test before?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What kind of error is trapped by on size error option?