Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

external variable

Status
Not open for further replies.

YGrunt

Programmer
Dec 12, 2002
7
BE
Hi,

when I try to declare a external variable and run the program, it says

"load failure c:\cobol\binr\externl"

I have to put something in this directory, but I don't really know what.

This is a part of the code:

Main program
-------------
working-storage section.
01 param pic x(11) external.

procedure division.
display "rizivnr: "
accept param
call "list1"
stop run.

Subprogram is list1. It generates a list of patients.
 
Which COBOL compiler are you using?

Is this homework? Tom Morrison
 
Hi YGrunt,

There is also the distinct possibility that your COBOl environment variables are not set or not set correctly. You may have to re-install your compiler.

See if you can find c:\cobol\binr\externl in your machine.

Dimandja
 
Hi YGrunt,

On Dec 12 you issued a post requesting help with a page break problem. You received 5 responses with helpful info. Please show the courtesy accorded you by responding that the info helped and thanking those who took the time to help.

The time you take may help someone else experiencing the same problem in the future.

I've decided to keep a list of those who can't take the time to thank those who took the time to help them. If you're on the list, you get no help from me.

Call me petty, but thanking someone who attempts to help you is the right thing to do. It doesn't cost much either.

Regards, Jack.
 
YGrunt,
I'm kinda with Jack on this one. When people in this forum gives answers, it's often the most likely answer (in their opinion) to a question asked. It may not always be the right answer, due to a number of factors, but more often than not, the person responding has a number of other possibilities.

It's therefore always a good idea to 'close' a thread when something has worked, and saying thanks at the same time kills two birds with one stone.

Jack's comments may seem a little harsh, but as I look at your stats (signed in 3 times, 1st on 12/12, asked two questions, made no other contributions), he's got a point.

Marc
 
Jack and Marc make very good points. Some posts simply don't want to be helped.
 
oeps, sorry guys, was caught up in the fascenating world of COBOL :)

You're right, thx for everyone who's helping me with this and for the good answers

I will try to pay more attention on this
 
Does this mean your problem is solved? If so, could you tell us how it was solved?
 
well, my subprogram is called lijst1

after compiling, you get a .obj file of the subprogram and you have to put it in the cobol\binr\ directory

and then it works

the reason why he puts \externl behind it, i don't know
 
Indeed,

I will ask some friends of mine, maybe they know the precise reason

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top