For Programmers: Free Programming Magazines  


Home > Archive > Cobol > March 2006 > Beginner's questions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Beginner's questions
LokiThread

2006-03-27, 2:53 am

I'm a novice in COBOL, and I've got a couple of questions.

1. Consider a CCB entry:
05 FIELD PIC S999V99.
what will be size of data? From the manual it looks like the size should be 5, but how can I post negative values?

2. 05 FIELD PIC S999V99 USAGE DISPLAY.
The same - what will be the size and how to distinguish +12345 and -12345.

3. 05 FIELD PIC 99999CR.
Do CR/DB items have any representation in data? Please give examples of the data valid for this PIC clause.

4. 05 FIELD PIC 99999B.
Does B have any influence on data? Please give examples.

5. What is the usage of N and G symbols, could you please give examples of CCB entry and corresponding data?

In all the questions under 'data' I mean 'unedited' data which is present in the source data file.

Thanks in advance.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com