data type conversion- help needed



Hi All,


I need to convert the following COMP/BINARY field

05 COUNTER PIC S9(9) COMP

into the regular usage as below

05 WS-COUNTER PIC 9(9).

Im refering to mainframe cobol(85).

Could any of you please let me know how to do this...
Im struck at this point............

Thanks in advance

- Harsha

.



Relevant Pages

  • Re: data type conversion- help needed
    ... 05 COUNTER PIC S9COMP ... into the regular usage as below ... Im refering to mainframe cobol. ... A man who believes in a God he doesn't see, or a man who's offended by a God he doesn't believe in?" ...
    (comp.lang.cobol)
  • Re: data type conversion- help needed
    ... harsha wrote: ... 05 COUNTER PIC S9COMP ... into the regular usage as below ... Im refering to mainframe cobol. ...
    (comp.lang.cobol)
  • Re: AIX COBOL ASSIGN error.
    ...   USAGE COMP ... Can you tell us what software you are using to download the file (and exactly ... the mainframe to AIX? ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... On Jun 28, 10:14 pm, Louis Krupp ... Can anyone tell me how to recognize whether the COMP ... And which mainframe is it? ... floating point value into an exponent and a mantissa. ...
    (comp.lang.cobol)
  • Re: hex to ebcdic
    ... Actually the file that I am ftping from the mainframe has packed ... numeric (comp.) as well as these display fields. ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)