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.

Example 4This example navigates to the E$BR primary file by sweeping the file using thesecondary key E$BRSK01. For each record retrieved from E$BR, <strong>Extract</strong>navigates to the E$MB related file along the E$BRLK01 linkpath. One extractedoutput record is generated for each pair of records read from E$BR and E$MB.Data from E$BR may be repeated in multiple consecutive output records if thelinkpath chain in E$MB contains multiple records.Note that if no records exist in E$MB on the E$BRLK01 linkpath chain for agiven E$BR record, <strong>Extract</strong> generates null output for the E$MB data fields. Theextracted output flat file contains data values selected from five fields in E$BRand two fields in E$MB.The input UCL is:CONTROL(BEGIN)ENV-DESC(BURRYENV)SCHEMA(BURRYS)FUNCTION(EXTRACT)FILE(E$BR)QUALIFIER(INDEX)SECONDARY-KEY(E$BRSK01)SELECT(E$BRCTRL.EQ.E$MBE$BR)FILE(E$MB)QUALIFIER(SEQUENTIAL)LINKPATH(E$BRLK01)CONTROL(END)The input XML is:<strong>Extract</strong> <strong>Utility</strong> <strong>User's</strong> <strong>Guide</strong>, P25-9513-03 70Chapter: 5. Coding the <strong>Extract</strong> functionSection: <strong>Extract</strong> examples

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

Saved successfully!

Ooh no, something went wrong!