error running COBOL - ".loader does not exist"


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers error running COBOL - ".loader does not exist"
# 15  
Old 08-02-2006
Just got back to my COBOL /UNIX experiment.

Don't know if your still around or not but here is what I am getting now.

It's almost like my editor (text pad) is putting something at the end of any line I edit that the compiler does not like. Does that sound right?

Anyway, here is where I am having the problem.

HTML Code:
000258                PROCEDURE DIVISION. 
                                                                                       
                                                                                                  
 ==000258==> IGYPS0027-S Non-COBOL character(s) were found starting with "
" in column 28.  The   
                         characters were discarded.                                               
                                                                                                  
   000259                BEGIN.
                                                                                                     
                                                                                                  
 ==000259==> IGYPS0001-W A blank was missing before character "
" in column 14.  A blank was      
                         assumed.                                                                 
                                                                                                  
 ==000259==> IGYPS0027-S Non-COBOL character(s) were found starting with "
" in column 14.  The   
                         characters were discarded.                                               
                                                                                                  
   000260                0000-MAINLINE.
                                                                                             
                                                                                                  
 ==000260==> IGYPS0001-W A blank was missing before character "
" in column 22.  A blank was      
                         assumed.                                                                 
                                                                                                  
 ==000260==> IGYPS2015-I The paragraph or section prior to paragraph or section "0000-MAINLINE"   
                         did not contain any statements.                                          
                                                                                                  
 ==000260==> IGYPS0027-S Non-COBOL character(s) were found starting with "
" in column 22.  The   
1PP 5724-H44 IBM COBOL for AIX                       2.0.0      ABEPREP   Date 08/02/2006  Time 11:37:01   Page     7                
   LineID  PL SL  ----+-*A-1-B--+----2----+----3----+----4----+----5----+----6----+----7-|--+----8  Map and Cross Reference          
0                        characters were discarded.                                               
                                                                                                  
   000261                           
                                                                                                
                                                                                                  
 ==000261==> IGYPS0027-S Non-COBOL character(s) were found starting with "
" in column 19.  The   
                         characters were discarded.                                               
                                                                                                  
   000262                    PERFORM 1000-INIT.                                                     272                              
   000263                                                                                                                            
   000264                    PERFORM 3000-MAIN UNTIL END-OF-INPUT.                                  281 96                           
   000265                                                                                                                            
   000266                    PERFORM 9000-FINISH.                                                   1758                             
   000267                                                                                                                            
   000268                    STOP RUN.
I wrapped with HTML tags. It says column 28 on the PROCEDURE DIVISION line. That column is the one right after the period.

Any ideas?

Thanks.
# 16  
Old 08-02-2006
OK, I figured that out - in Textpad I turned on "view visible spaces' and there were spaces or line feed tags in the beginning of the line throwing the compiler off. So this is fixed.

Now, I am still getting a return code of 8 at the beginning of the listing:


HTML Code:
1PP 5724-H44 IBM COBOL for AIX                       2.0.0                Date 08/02/2006  Time 12:08:32   Page     1                
0PROCESS(CBL) statements:
        PROCESS  OPTIONS.                                                                                                            
                                                                                                                                     
         IGYOS4003-E   Invalid option "OPTIONS." was found and discarded.

My command to compile is

Code:
cob2 comprc_ok=8 /home/test/clients/ABE/abeprep.cbl

Supposedly, this will allow for a rc of 8 - it had in the past but now I just get a abeprep.o file as output and not the a.out file that I used to execute prior.

Thanks in advance.
# 17  
Old 08-02-2006
OK, FIXED IT. There was a line at the beginning of my source code

Code:
PROCESS  OPTIONS.

Not sure where it came from.

Thanks for letting me babble.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

SSHd is running, but cant connect "Network error: Connection refused"

Hi, i checked on rhel VPS is running sshd (service ssh status) But i cant connect via putty: "Network error: Connection refused" Please which log file in my centos rhel linux i need to watch or what are steps to do to discover cause? (3 Replies)
Discussion started by: postcd
3 Replies

3. Shell Programming and Scripting

How to put a "timer" when running df - NFS error

Hi gurus, OS = SunOS 5.8 Not sure whether to post this in the scripting one or to advance and experts. Am posting on both since there is two things that am wanting to achieve. Am currerntly having NFS server errors where it is having problems NFS mounting some of the volumes from the... (1 Reply)
Discussion started by: newbie_01
1 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. UNIX for Dummies Questions & Answers

UNIX Scripts "Load Error" with MicroFocus COBOL subprograms

When running our UNIX job scripts we randomly get the following 198 error below. When we restart the job it works fine. I haven't been able to recreate the problem in test, so I'm wondering if it has something to do with Cron or possibly a memory error or memory leak. I don't see anything... (5 Replies)
Discussion started by: rthiele
5 Replies

6. AIX

AIX cp error: "A file or directory in the path does not exist"

Hello fellow UNIX fans, I'm running AIX 4.3 and getting an error message “cp: /a/file2.db: A file or directory in the path does not exist” when I run the following command: cp /b/file.db /a/file2.db It stops every time about 95% of the way through the copy process at 1,073,741,312 bits. ... (3 Replies)
Discussion started by: Jackson123
3 Replies

7. UNIX for Dummies Questions & Answers

Any options with "cp" to create a folder if it doesn't exist.

I've created a backup and restore script and it's working fine so it's all about making it more robust at the moment for me. Let's say the user has a folder in their home directory for word processing files called "wp". I want to copy the files I made a backup of from this directory back into it.... (2 Replies)
Discussion started by: EwanD
2 Replies

8. Programming

how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist

I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories. but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Discussion started by: platinumedge
8 Replies

9. Red Hat

error"warning: user owen does not exist - using root"?

I am trying to install openmotif22-2.2.3-18.src.rpm, after I typed in " rpm -i openmotif22-2.2.3-18.src.rpm" the following message comes out: warning: user owen does not exist - using root warning: group owen does not exist - using root I am install openmotif under root account. Do... (2 Replies)
Discussion started by: fishwater00
2 Replies

10. HP-UX

script running with "ksh" dumping core but not with "sh"

Hi, I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone. And its not dumping core if we run the script using "/bin/sh" instead of "ksh" Can some body please help me how to resolve this issue. ... (9 Replies)
Discussion started by: simhe02
9 Replies
Login or Register to Ask a Question