11.07.2015 Views

Extract Utility User's Guide - Supra - Cincom

Extract Utility User's Guide - Supra - Cincom

Extract Utility User's Guide - Supra - Cincom

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The FUNCTION statement initiates the <strong>Extract</strong> function. You can code theFUNCTION statement only once in a single UCL program. The following exampleshows how to organize a simple UCL program:CONTROL (BEGIN)supporting control statementsFUNCTION (EXTRACT)supporting function statementsCONTROL (END)Using the hierarchical structure of UCLUCL has a hierarchical structure. After each CONTROL or FUNCTION statement,you code a number of subordinate statements. For example, in the followingUCL program, LIST is subordinate to CONTROL, and FILE is subordinate toFUNCTION. This manual shows the subordinate statements by indenting them.CONTROL (BEGIN)LIST (name)FUNCTION (EXTRACT)FILE (name)CONTROL (END)To code a subordinate statement, you must code all of its superordinatestatements. For example, you must code a FUNCTION statement before youcode a FILE statement. This restriction also applies when subordinatestatements have subordinates. In the following UCL example, the CONTROLstatement has a subordinate statement, LIST, which has a subordinatestatement, HEADER. You must code the LIST statement before you code theHEADER statement.CONTROL (BEGIN)LIST ()HEADER(YES)FUNCTION (EXTRACT)STATISTICS (ALL)FILE (PTMF)QUALIFIER(SERIAL)SELECT(PTMFFELD.EQ.RANVCTRL)FILE (RANV)CONTROL (END)<strong>Extract</strong> <strong>Utility</strong> <strong>User's</strong> <strong>Guide</strong>, P25-9513-03 9Chapter: 2. Using the <strong>Extract</strong> utilitySection: <strong>Extract</strong> utility overview

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

Saved successfully!

Ooh no, something went wrong!