AS400 Mid Range/CL Errors

Advertisement


Question
QUESTION: i get a error msg on the following cl line example  CPF0001


call  OR5232R ' '

i have no parameters so i removed the  ' ' and still get the error, what am i missing?

ALSO on a prtf if you create the print file using F4 and indicate form size 60  198 ect, do i still need it on the CL?

ANSWER: 1) What is the error message number (CPFxxxx) and text of the error message you receive?

2) No, if you have created a printer file specifying a particular formsize, you do not need to specify it again in the CL.

- Laird

---------- FOLLOW-UP ----------

QUESTION: CPF0001 is the msg

Answer
CPF0001 is a catch-all error message, that basically says "an error occurred". Normally there is a lower-level message that is more specific.  I do not have enough information to be able to determine what the problem might be. Possibilities include:

1) The system can't find OR5232R - either because it didn't compile, or because it compiled to a library that is not in your library list.

2) The program required a different number of parameters than you passed.

3) The program cannot find one of the files that it needs.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.