Page 1 of 1

What does this COBOL declaration mean?

PostPosted: Tue Jul 26, 2016 11:19 am
by arya_starc
what is the difference between below variable definition.

03  WS-D1-TIME          PIC 9(11)-.
03  WS-D1-TIME          PIC 9(11).
 

As in the first variable declaration there is a '-' hyphen in the last.
Please let me know.
Thanks in advance.

Re: What does this COBOL declaration mean?

PostPosted: Tue Jul 26, 2016 11:40 am
by BillyBoyo
Have you consulted the Enterprise COBOL Language Reference, the section on PICture Strings?

Re: What does this COBOL declaration mean?

PostPosted: Tue Jul 26, 2016 2:27 pm
by arya_starc
BillyBoyo wrote:Have you consulted the Enterprise COBOL Language Reference, the section on PICture Strings?


yes I go thru this( as I mentioned below)....but not able to get

http://ibmmainframes.com/references/a266.html

Re: What does this COBOL declaration mean?

PostPosted: Tue Jul 26, 2016 2:46 pm
by BillyBoyo
That is not the Enterprise COBOL Language Reference.

However, even there it has a description (a bit vague) of what +/- mean.

Re: What does this COBOL declaration mean?

PostPosted: Tue Jul 26, 2016 6:12 pm
by Robert Sample
You need to read the http://publibfp.boulder.ibm.com/epubs/pdf/igy6lr10.pdf manual (as otherwise suggested) and more specifically the Fixed Insertion Editing section starting on page 216.