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 / satish

01 a pic -9(5) value -12345

Answer : either of the below :

01 a pic -9(5) value -12345 will working without any
changes or
01 a pic 9(5) value -12345 leading seperate

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1547


how to access the file from prodution from changeman tool and to submit a file to production

6686


How do u write test cases?

1638


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.

1783


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060






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 ......

10617


In COBOL, what is the different between index and subscript?

759


Which Search verb is equivalent to PERFORM…VARYING?

686


Which division and paragraphs are mandatory for a COBOL program?

709


Explain how to differentiate call by context by comparing it to other calls?

689


Difference between cobol and cobol-ii?

707


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.

2058


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

755


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2118


how do you reference the printer file formats from cobol programs

665