17.05.2014 Views

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exception Handling in RPG. <strong>TET</strong> clients written in ILE-RPG can use a limited form of<br />

<strong>TET</strong>’s try/catch mechanism as follows:<br />

c eval rtn=tet_try(tet)<br />

c if <strong>TET</strong>_open_document(tet:in_filename:0:optlist)=-1<br />

c<br />

or tet_catch(tet)=1<br />

*<br />

c callp <strong>TET</strong>_delete(tet)<br />

c eval error='Couldn''t open input file '+<br />

c<br />

%trim(out_filename)<br />

c exsr exit<br />

c<br />

endif<br />

3.10 RPG Binding 33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!