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"
# 8  
Old 06-30-2006
I got it

cob2 comprc_ok=8 abeunix.cbl

This created a.out

I executed it and it told me my input file was missing - which means it is working.

Thanks again.
# 9  
Old 07-14-2006
OK, I am having trouble with this again. First off, when I issue the SAME EXACT command that I used to create an object module, I end up with the abeprep.o file instead, meaning it did not link successfully.

I am using

cob2 comprc_ok=8 abeprep.cbl

Yes, I renamed the source file from abeunix.cbl to abeprep.cbl

Also, the reason I am getting the RC of 8 is because at the top of the listing it says that

IGYOS4003-E invalid option "OPTIONS." was found and discarded.

How come the compiler is not working again and what can I do to remedy the RC8

Thanks in advance.
# 10  
Old 07-14-2006
FWIW - you should probably fix either the code or the COBOL compile command anytime you get anything bu a perfect compile. RC 8 is NOT perfect, assuming this RC works like COBOL II on mvs. Since it's an IBM product and is aimed at mainframe ports, I think this is correct.

try
Code:
cob2 -v comprc_ok=8 abeprep.cbl

or whatever option is required to go into verbose mode. Post the output.

Linking problems for a lot of compilers like this are related to a path variable called
SHLIB_PATH (maybe LD_LIBRARY_PATH)

Do this:
Code:
echo "SHLIB_PATH " "$SHLIB_PATH"
echo "LD_LIBRARY_PATH " "$LD_LIBRARY_PATH"

Post the output.
# 11  
Old 07-14-2006
$ echo "SHLIB_PATH " "$SHLIB_PATH"
SHLIB_PATH
$ echo 'LD_LIBRARY_PATH " "$LD_LIBRARY_PATH"
>

That is the output.
# 12  
Old 07-14-2006
Can you toggle verbose output on for the compile step and post it here?

I need to see what it's complaining about.
# 13  
Old 07-14-2006
Output in code wraps

Code:
LineID  Message code  Message text
                                                                                                                                     
         IGYDS0139-W   Diagnostic messages were issued during processing of compiler options.  These messages are located at the     
                       beginning of the listing.                                                                                     
                                                                                                                                     
     19  IGYGR1216-I   A "RECORDING MODE" of "F" was assumed for file "ABE-INPUT".                                                   
                                                                                                                                     
     24  IGYGR1216-I   A "RECORDING MODE" of "F" was assumed for file "ABE-OUTPUT".                                                  
                                                                                                                                     
    269  IGYPS2015-I   The paragraph or section prior to paragraph or section "1000-INIT" did not contain any statements.            
-Messages    Total    Informational    Warning    Error    Severe    Terminating
0Printed:       5           3              1         1                      
-* Statistics for COBOL program ABEPREP:
 *    Source records = 1776
 *    Data Division statements = 188
 *    Procedure Division statements = 812
0Locale = en_US.ISO8859-1
0End of compilation 1,  program ABEPREP,  highest severity: Error.
0Return code 8

And the output at top of listing telling me about options is :

Code:
PROCESS(CBL) statements:
        PROCESS  OPTIONS.                                                                                                       
                                                                                                                                     
         IGYOS4003-E   Invalid option "OPTIONS." was found and discarded.

I took this from a view of the listing, I hope that is OK. Thanks.
# 14  
Old 07-14-2006
Great. You have what amounts to a syntax error.

Get into an editor. Go to line 269. You have a section declared above line 269 that doesn't have any statement, ie., some valid COBOL statement or declaration that ends with a period.

It's been 30 years since I've done COBOL, but it hasn't changed....

Somewhere above line 269 you should see
Code:
PROCEDURE DIVISION.

In column 8 one line (or more ) under procedure division look for "BEGIN." If it isn't in there somewhere add it. Has to come before any COBOL statements.

Next look at the last statement in the WORKING-STORAGE SECTION. There should be a period at the end of it.

Look at the statement above 1000-INIT. It should be a statement, not the PROCEDURE DIVISION.

If none of this fixes it post lines 200-300 of the source.
 
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