Data handling coursework

De mortuis nihil nisi bonum.

RE: Duplicate key error handling iSeriesCodePoet (Programmer) 5 Oct 04 11:13 Wouldn't this work as well?

CODE C          Monitor
C          WRITE(E) FILENAME
C          On-Error 01021
C          CALL      PROGX
C          EndMon iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
http://
http:///?q=affiliates&amp... RE: Duplicate key error handling iSeriesCodePoet (Programmer) 5 Oct 04 11:14 I wish we could edit these posts...

Remove the '(e)' from the write statement. iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
http://
http:///?q=affiliates&amp... RE: Duplicate key error handling Mercury2 (TechnicalUser) 5 Oct 04 17:28 I also wish we could edit ones own posts.

Flapeyre,
When the operation code extender ’E’ is specified, before the operation begins, this extender sets the
%ERROR and %STATUS built-in functions to return zero.
Therefore, I do not think necessary to also test
%ERROR in that case. If no error occurs, %STATUS will be 0.

MONITOR is a good way to handle the file status as well.

In fact, there is an error in my previous post. I declared the Program Status Data Structure (PSDS) and should have declared the INFDS instead :
D INFDS           DS
D FILE_STATUS       *STATUS

RE: Duplicate key error handling flapeyre (Programmer) 6 Oct 04 12:18 Maybe so, but I think it's clearer to check for both %ERROR and %STATUS. In the examples IBM gives in the manual, they are always checking either the indicator or %ERROR before checking %STATUS. De mortuis nihil nisi bonum.

RE: Duplicate key error handling iSeriesCodePoet (Programmer) 6 Oct 04 12:29 Read through [link= http:///midrange-l/200410/msg0... ]this thread[/link] for some more ideas. iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
http://
http:///?q=affiliates&amp... Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.
Cancel Red Flag Submitted Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Data handling coursework

data handling coursework

Media:

data handling courseworkdata handling courseworkdata handling courseworkdata handling coursework