Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: Understandi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 60 of 66 Topic 4101 of 4196
Post > Topic >>

Re: Understanding Error Messages

by "William M. Klein" <wmklein@[EMAIL PROTECTED] > May 19, 2008 at 05:57 PM

two part answer:

The listing  you can see my listing in:

    http://groups.google.com/group/comp.lang.cobol/msg/d8125cf35197cefa

has TONS of messages - all of them showing that the source code that you
were 
compiling had invalid characters, for example, it explicitly states,

    2 IGYDS0027-S Non-COBOL character(s) were found starting with " " in
column 
29. The characters were discarded.

You need to fix THOSE problems before you would see problems with columns.

So what you need to do is compile a mainframe source file with no bad 
characters. See if you do get error messages (especially about columns)
and then 
tell us the results. If you get even ONE IGY message, you need to fix it
before 
you tell us that you don't have any messages.

Again, you fix mainframe compile problems by fixing the mainframe source
code 
(not the listing).
 1) It should have no invalid characters (found by using the ISPF Find
P"." 
command
 2) The source code should be in the correct columns
 3) There should be no "bad data" at the end of lines like that source
program 
had in
    end program nwtest01.on.

   ***

Part 2:
   As far as the "good source" code listed below, I think you are 
misunderstanding what you are seeing in both the listing and the source
code.
First, as far as the listing below, it is using propostional font, so it
is hard 
to see what columns the listing shows things in.  The "line unumbers" in
that 
listing are under the heading:
    LineID  PL SL
in the line showing you which column things are under. These are all
explained 
at:
   http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/igy3pg40/2.6.4.2

It is also worth noting that you have posted below has "print control 
characters" in it.  For example, the first "0" in
   0  000001                IDENTIFICATION DIVISION

You need to understand what you are looking at and how this impacts
APPARENT 
columns.

Now, if you go into ISPF edit of the GOOD source code and use the ISPF
"COLS" 
line command.  See:
  
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ispzem61/3.1.11

It will show you exactly what column the "I" in "IDENTIFICATION DIVISION"
is in. 
It can be anything between 8 and 11.  (The A-margin).

It will show you what column the "D" in "DISPLAY "NAME:"" is.  (It can be 
antthing from 12 on - before 72, the B-margin).

It will show you what column the FIRST "*" is in in
   000006 
******************************************************************

It will turn out to be EXACTLY column 7 (the indicator column).

This will show you (once again) that you need to understand both how to
use ISPF 
and what an IBM mainframe COBOL compiler listing is telling you.

  ****

Again, you NEED training to attempt to do what you are trying to do - or
you 
need someone that you can go to for these BASIC issues for trying to
accomplish 
what you are trying to do.

Finally, just like you are using a 15 year old compiler on the PC, you are
also 
using an OLD and out-of-service compiler on the IBM mainframe.

  5648-A25 IBM COBOL for OS/390 & VM

hasn't been sup****ted by IBM for several years now (unless you are running
under 
VM istead of z/OS - and in that case you have lots of other problems)

-- 
Bill Klein
 wmklein <at> ix.netcom.com
"amir" <ahsharif@[EMAIL PROTECTED]
> wrote in message 
news:9390d5a9-abae-4ed1-8825-0f24500f1aba@[EMAIL PROTECTED]
> On May 19, 12:36 pm, "William M. Klein" <wmkl...@[EMAIL PROTECTED]
>
> wrote:
>> You have NEVER posted a copy of source code WITH MATCHING error
messages - 
>> where
>> the compiler rejects code in columns 8 and 12.
>>
>> You say,
>>
>>  " Therefore, it did not worked and there were not any Error message
show 
>> me."
>>
>
> In the message above I told about there is not any error message which
> shows me wrong column usage. Also you can see my listing in:
> http://groups.google.com/group/comp.lang.cobol/msg/d8125cf35197cefa
>
> In this message, you can see that columns matched and there were not
> any problem in columns.
>
>> You CLAIM,
>>
>> "> What you see in the right source code,
>>   Areas is according to:
>>    11->Indicator
>>    12->Area-A
>>    16->Area-B
>> "
> You can see the source code listing as:
> ---------------------------------------------------------
> 1PP 5648-A25 IBM COBOL for OS/390 & VM
> 2.2.0                             Date 05/18/2008  Time 18:48:54
> Page     1
> 0Invocation parameters:
> OBJECT,LIB,NOTEST,FLAG(I,I)
> 0Options in effect:
>     NOADATA
>       ADV
>     NOANALYZE
>       QUOTE
>       ARITH(COMPAT)
>     NOAWO
>       BUFSIZE(4096)
>     NOCMPR2
>     NOCOMPILE(S)
>     NOCURRENCY
>       DATA(31)
>     NODATEPROC
>     NODBCS
>     NODECK
>     NODIAGTRUNC
>     NODLL
>     NODUMP
>     NODYNAM
>     NOEXIT
>     NOEX****TALL
>     NOFASTSRT
>       FLAG(I,I)
>     NOFLAGMIG
>     NOFLAGSTD
>     NOIDLGEN
>       INTDATE(ANSI)
>       LANGUAGE(EN)
>       LIB
>       LINECOUNT(60)
>     NOLIST
>     NOMAP
>     NONAME
>     NONUMBER
>       NUMPROC(NOPFD)
>       OBJECT
>     NOOFFSET
>     NOOPTIMIZE
>       OUTDD(SYSOUT)
>       PGMNAME(COMPAT)
>     NORENT
>       RMODE(AUTO)
>       SEQUENCE
>       SIZE(MAX)
>       SOURCE
>       SPACE(1)
>     NOSQL
>     NOSSRANGE
>     NOTERM
>     NOTEST
>       TRUNC(STD)
>     NOTYPECHK
>     NOVBREF
>     NOWORD
>     NOXREF
> 1PP 5648-A25 IBM COBOL for OS/390 & VM
> 2.2.0                             Date 05/18/2008  Time 18:48:54
> Page     2
> 0      YEARWINDOW(1900)
>       ZWB
> 1PP 5648-A25 IBM COBOL for OS/390 & VM  2.2.0
> DI01      Date 05/18/2008  Time 18:48:54   Page     3
>  ----+-*A-1-B--+----2----+----3----+----4----
> +----5----+----6----+----7-|--+----8  Map and Cross Reference
> 0  000001                IDENTIFICATION DIVISION.
>   000002                PROGRAM-ID. DI01.
>   000003                ENVIRONMENT DIVISION.
>   000004                DATA
> DIVISION.                                                   EZA00270
>   000005                WORKING-STORAGE SECTION.
>   000006
> ******************************************************************
>   000007                01 TEST-DG.
>   000008                    03 NAME1               PIC X(20) VALUE
> 'TEST'.
>   000009                    03 NO1                 PIC 9(4)  VALUE
> 4444.
>   000010
>
******************************************************************EZA01700
>   000011                PROCEDURE
> DIVISION.                                              EZA01720
>   000012                    DISPLAY "NAME:"
>   000013                    ACCEPT NAME1 OF TEST-DG
>   000014                    DISPLAY "NO:"
>   000015                    ACCEPT NO1 OF TEST-DG
>   000016                    DISPLAY
> "--------------------------------------------"
>   000017                    DISPLAY NAME1
>   000018                    DISPLAY NO1
>   000019                    STOP RUN
>   000020                    .
> -* Statistics for COBOL program DI01:
> *    Source records = 20
> *    Data Division statements = 3
> *    Procedure Division statements = 8
> 0End of compilation 1,  program DI01,  no statements flagged.
> 0Return code 0
> ---------------------------------------------------------
> This code compiled without any error as you see above.
> Also according to last message I told you, can see the columns as
> everything is ok.
> ---------------------------------------------------------
> http://groups.google.com/group/comp.lang.cobol/msg/d8125cf35197cefa
> 1PP 5648-A25 IBM COBOL for OS/390 & VM  2.2.0
> NWTEST01  Date 05/06/2008  Time 11:24:29   Page     4
>   LineID  PL SL  ----+-*A-1-B--+----2----+----3----+----4----
> +----5----+----6----+----7-|--+----8  Map and Cross Reference
> 0  000001                identification
> ---------------------------------------------------------
>
>> Again, you have NOT shown us the exact source code and a listing to
match it.
>> I'll bet that if you seriously look at the mainframe listing you will
see 
>> that
>> those are NOT the columns used for a successful compile.  If you just
posted 
>> the
>> ****tion of the successful compiler listing that starts with the
"header" line
>> showing columns of the source code, I can almost guarantee that what
you are
>> claiming is NOT what you are actually compiling.
>
> I don't know how did you get this result.
>
>> > What you see in the right source code,
>> > Areas is according to:
>> > 11->Indicator
>> > 12->Area-A
>> > 16->Area-B
>> > If you subtract 3 from each number, you get the standard numbers.
>> > ISPF-Editor showed these numbers, may some bad setting in the editor
>> > and viewer configuration or an Standard in ISPF-Editor, I did not
know
>> > about it.
>
> I find my problem. Exact columns are:
> 15->Indicator
> 16->Area-A
> 20->Area-B
> The ISPF consumed 6 characters for numbering lines and one space after
> it and if you subtract 7 from this numbers you get the standard
> numbers.
> Anyway, I am wondering about the compiler errors, did not mean this to
> me.
> Thanks,
>
 




 66 Posts in Topic:
Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-03 00:02:43 
Re: Understanding Error Messages
Arnold Trembley <arnol  2008-05-03 07:18:09 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-03 01:02:58 
Re: Understanding Error Messages
SkippyPB <swiegand@[EM  2008-05-03 12:45:09 
Re: Understanding Error Messages
T. Rex <tyranno@[EMAIL  2008-05-03 18:06:44 
Re: Understanding Error Messages
Howard Brazee <howard@  2008-05-05 08:02:06 
Re: Understanding Error Messages
"tlmfru" <la  2008-05-05 12:06:31 
Re: Understanding Error Messages
T. Rex <tyranno@[EMAIL  2008-05-05 20:43:24 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-11 00:16:50 
Re: Understanding Error Messages
"Michael Mattias&quo  2008-05-11 08:02:54 
Re: Understanding Error Messages
spambait@[EMAIL PROTECTED  2008-05-11 18:17:33 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-11 23:52:10 
Re: Understanding Error Messages
Clark F Morris <cfmpub  2008-05-11 22:13:30 
Re: Understanding Error Messages
SkippyPB <swiegand@[EM  2008-05-12 11:18:28 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-14 09:52:06 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-14 10:33:33 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-14 17:41:55 
Re: Understanding Error Messages
docdwarf@[EMAIL PROTECTED  2008-05-03 09:40:32 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-03 22:00:07 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-04 00:42:51 
Re: Understanding Error Messages
T. Rex <tyranno@[EMAIL  2008-05-04 10:14:46 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-06 23:38:49 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-07 08:54:24 
Re: Understanding Error Messages
docdwarf@[EMAIL PROTECTED  2008-05-07 09:28:18 
Re: Understanding Error Messages
Howard Brazee <howard@  2008-05-07 08:26:41 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-12 03:50:09 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-12 12:46:38 
Re: Understanding Error Messages
Clark F Morris <cfmpub  2008-05-12 17:34:04 
Re: Understanding Error Messages
Binyamin Dissen <posti  2008-05-12 16:02:25 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-07 05:46:16 
Re: Understanding Error Messages
Howard Brazee <howard@  2008-05-07 08:28:47 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-07 19:24:07 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-08 20:23:07 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-13 07:58:31 
Re: Understanding Error Messages
Howard Brazee <howard@  2008-05-13 09:18:18 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-13 18:24:38 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-18 03:20:30 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-18 13:04:45 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-19 00:46:30 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-19 09:30:20 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-14 01:04:30 
Re: Understanding Error Messages
SkippyPB <swiegand@[EM  2008-05-14 12:05:26 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-14 17:26:43 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-14 19:05:15 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-15 05:41:25 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-15 20:04:10 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-17 02:17:56 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-17 17:29:58 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-17 14:04:55 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-18 01:00:00 
Re: Understanding Error Messages
Binyamin Dissen <posti  2008-05-18 12:04:49 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-18 10:44:08 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-18 08:13:35 
Re: Understanding Error Messages
docdwarf@[EMAIL PROTECTED  2008-05-18 15:48:26 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-18 21:37:05 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-18 18:26:30 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-18 23:04:12 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-19 09:36:17 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-19 03:29:18 
Re: Understanding Error Messages
"William M. Klein&qu  2008-05-19 17:57:37 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-07 05:49:30 
Re: Understanding Error Messages
docdwarf@[EMAIL PROTECTED  2008-05-07 13:18:02 
Re: Understanding Error Messages
Richard <riplin@[EMAIL  2008-05-07 12:22:42 
Re: Understanding Error Messages
amir <ahsharif@[EMAIL   2008-05-10 00:26:36 
Re: Understanding Error Messages
Robert <no@[EMAIL PROT  2008-05-10 06:28:32 
Re: Understanding Error Messages
Doug Miller <spambait@  2008-05-10 10:21:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:09:01 CDT 2008.