What does this COBOL declaration mean?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

What does this COBOL declaration mean?

Postby arya_starc » Tue Jul 26, 2016 11:19 am

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.
arya_starc
 
Posts: 136
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: What does this COBOL declaration mean?

Postby BillyBoyo » Tue Jul 26, 2016 11:40 am

Have you consulted the Enterprise COBOL Language Reference, the section on PICture Strings?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: What does this COBOL declaration mean?

Postby arya_starc » Tue Jul 26, 2016 2:27 pm

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
arya_starc
 
Posts: 136
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: What does this COBOL declaration mean?

Postby BillyBoyo » Tue Jul 26, 2016 2:46 pm

That is not the Enterprise COBOL Language Reference.

However, even there it has a description (a bit vague) of what +/- mean.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: What does this COBOL declaration mean?

Postby Robert Sample » Tue Jul 26, 2016 6:12 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post