Page 1 of 1

Compiler errors in COBOL Picture clauses

PostPosted: Thu Jun 03, 2010 3:26 pm
by coollearner
Hi All,
Can any one give me list of compiler errors that can occur the usage of Picture clauses in cobol. (errorsthat occur with movement of data, incorrect type of data etc)

Re: Compiler errors in COBOL Picture clauses

PostPosted: Thu Jun 03, 2010 4:49 pm
by Robert Sample
If you check the COBOL Programming Guide manual, you can find section 2.1.7.1 which gives the entire program to generate a list of every possible compiler error message as
     Identification Division.
     Program-ID. ErrMsg.
so you can generate your own list.

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 7:50 am
by coollearner
where can I find the COBOL Programming Guide manual ..?

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 8:09 am
by Robert Sample
IBM's web site would be the best source http://www-01.ibm.com/software/awdtools/cobol/zos/library/

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 9:34 am
by coollearner
Thank you. I ve referred the manual. The manual is having information about the error formats and erros that can occur in a cobol program. But I want errors that get generated while handling Picture clauses.

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 9:43 am
by dick scherrer
Hello,

Suggest you concentrate on writing correct code and when an error is generated, know how to find the information about the error in the manuals. . .

It is a considerable waste of time to try to itemize every possible error that could be generated. . .

Also suggest you create code with a few things you know are different picture errors. When these errors are shown in the compiler output, look up the official explanation. . .

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 9:45 am
by coollearner
Thanks for the advice

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 9:53 am
by dick scherrer
You're welcome :)

If you find an error description that is not clear, post your doubt and someone will be able to clarify.

d

Re: Compiler errors in COBOL Picture clauses

PostPosted: Fri Jun 04, 2010 4:28 pm
by Robert Sample
The errors that can be generated from a PICTURE clause will be included in the list of all errors that COBOL can generate. You would have to do a little work to find these errors yourself -- apparently this is beyond you. But you were provided a quick method to generate what you asked about.

If you have specific errors, post them and we will help you interpret them.