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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Params Outside 1st 64k of Working-Storage invalid for call-by-number 1

Status
Not open for further replies.

ermimi

Programmer
Nov 30, 2008
1
ES
Hello!!! I have a problem. I have begun to work in a new job. I never studied Cobol, and now I have to program in Cobol.
I found some file .cbl and when I try to compile the program return me this error:

Params Outside 1st 64k of Working-Storage invalid for call-by-number

Anybody know which could be this error?

Thank you very much,
A greetings,
Luismi
 
Some COBOL compilers supported what was referred to as call by number.

Instead of calling a sub-program by name, e.g. CALL CBL_ALLOC_MEM, you would have something like CALL x"d0"[/b]

These routines were generally 16-bit, which require a maximum of 64KB for a data segment.

The ideal thing to correct this is to find an equivalent call-by-name routine to call for these cases, or to make sure the parameters for the call-by-number are within the first 64KB of Working-Stroage. In fact, I would start at the beginning of working-storage and put a 01 there with a description like CALL-NUMBER-PARMS. along with a comment saying to not move those values.

Hope that helps.


----------
Measurement is not management.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top