CL Errors Questions

1

Convert an *iso date to *longjul in CLP
I am trying to convert an *iso date to a *longjul date in a CL program so I can subtract 6 days from today. It is crashing with a message “Date contains too many or too few numeric characters.” My code is : Definitions dcl var(&julend) type(*char) len(7) dcl var(&jul) type(*dec) len(8 0) Code cvtdat [...]

Answer Question   |  January 7, 2013  11:19 PM
CL Errors, CL Program
asked by:
30 pts.

How to trap the errors with out using monmsg?
Is it possible to trap the errors in CL with out using MONMSG.let me explain?

Answer Question   |  June 17, 2011  7:07 AM
AS/400 error messages, CL Errors, CL Program, MONMSG
asked by:
25 pts.

CL Code: Cpyfrmqryf ends because of error
My CL code works up until it gets to the Cpyfrmqryf then the program ends with an message stating ” Copy command ended because of error” but not what error how can you fix it if you don’t know the error?

Answer Question   |  June 3, 2010  3:18 PM
CL Commands, CL Errors, CPYFRMQRYF
asked by:
5 pts.

CPYTOPCD gettig an error in CL
Hello, This is my command in CL CPYTOPCD FROMFILE(QS36F/&SVPF) + TOFLR(‘c:testfoldertext.txt’) + TODOC(&SVPF) REPLACE(*YES) I get an error at run time. Error message as follows: 13308 – CPYTOPCD FROMF QCA ILE(QS36F/Y15162612) TO FLR(‘c:testfoldertext .txt’) TODOC(‘Y15162612 ‘) REPLACE(*YES) Folder name not correct QHU. ‘Y15162612 ‘ QHU is not a correct docume nt or folder name. Error [...]

Answer Question   |  April 17, 2009  8:51 PM
CL, CL Errors, CPYTOPCD
asked by:
115 pts.

1