Download presentation
Presentation is loading. Please wait.
Published byPatricia McBride Modified over 8 years ago
1
Introduction to Query Part 1
2
Query Overview Quick Utility Efficient Report Yes! Impress your manager!
3
Query Topics Terminology File Structures Accessing Query Query Definitions Exercises 1 and 2
4
Terminology Libraries, Files, Records and Fields I-Series – Stores information much like a file cabinet Libraries – AgVantage stores your information in a company library named co*data where * is your company letter, number or a symbol. COUDATA COBDATA COSDATA iSeries
5
Terminology Libraries, Files, Records and Fields Files – A group of records with related information on one topic similar to a file folder. Master Files – U4CSTMR Customer Master Transaction Files – U4TRND A/R Transaction COUDATA
6
Terminology Libraries, Files, Records and Fields Records – A smaller grouping of information on one topic within a file. In the customer file, each record contains information about one customer. Similar to a piece of paper Fields – One piece of information within a record. Similar to the words on a piece of paper Customer name, address, etc. U4CSTMR Doe Jane
7
Example LibraryCo*data – Data library which contains all AgVantage files FilesU4CSTMR – Customer Master RecordsEach individual customer’s information FieldsCSLKNM – Customer Lookup Name
8
Query Libraries Recommendations: Create your own library for queries. CRTLIB command Use QRY at the end of the name. Ex. COOPQRY Common AgVantage Query Libraries GRNQRYV6 SYSQRYV6 USERCONF
9
File Structures USYSTM AgVantage System Menu Select one of the following: 1. General Ledger GLS or U1 2. Accounts Payable U2 3. Payroll U3 4. Accounts Receivable U4 5. Grain Accounting U5 6. Agronomy U6 7. Energy Management U7 8. Inventory U8 9. Patronage U9 10. Mailing Manager UA 11. Counter Invoicing 12. Investments UI 13. Interfaces 14. Feed Selection or command F3=Exit F4=Prompt F9=Retrieve F12=Cancel
10
Accounts Payable U2APOPNA/P Open Accounts Payable APSCHEKCheck Reconciliation U2VMSTRVendor Master U2IVHSTInvoice History U2HSTTRInvoice History Detail
11
Accounts Receivable U4CSTMRCustomer Master U4ITMMRItem Master U4ITMBLItem Master Balance U4DEPTDepartment U4FLCFine Line Code U4TRNHA/R Header Information U4TRNDA/R Detail Information U4CAGEA/R Aging Information
12
Grain U5CROPSCrop Information U5PCTRLPurchase Control/Contracts U5PLOADPurchase Load Header File U5PSBLDSub-Load Information U5SCTRLSales Control/Contracts U5SETTLHPurchase Settlements Header U5SETTLDPurchase Settlements Detail U5SARLDSales Settlements
13
Inventory U8APINVA/P File U8BLENDBlends U8INTRNSummary Transaction U8INVNTDetail Transaction U8ORDTLPurchase Order Detail U8ORHDRPurchase Order Header
14
General Ledger GLSACCTAccount Master GLSMASTAccount Master Balances GLSJRNLDetail
15
Accessing Query RUNQRY Quick listing of a file WRKQRY Writes and saves queries
16
RUNQRY (F4) Used to display the data in the file Used to run a specific query Type choices, press Enter. Query............. Name, *NONE Library........... *LIBL Name, *LIBL, *CURLIB Query file: File............. Name, *SAME Library.......... *LIBL Name, *RUNOPT, *LIBL, *CURLIB Member............ *FIRST Name, *RUNOPT, *FIRST, *LAST + for more values Report output type....... *RUNOPT *RUNOPT, *DISPLAY... Output form.......... *RUNOPT *RUNOPT, *DETAIL, *SUMMARY Record selection........ *NO *NO, *YES
17
WRKQRY Used to create, change, delete, display & run queries Work with Queries Type choices, press Enter. Option...... 2 1=Create, 2=Change, 3=Copy,4=Delete 5=Display, 6=Print definition 8=Run in batch, 9=Run Query....... Name, F4 for list Library..... KARENQRY Name, *LIBL, F4 for list
18
Work With Queries Work with Queries Library........ KARENQRY Name, *LIBL, F4 for list Subset........ Name, generic* Position to...... Starting characters Type options (and Query), press Enter. 1=Create 2=Change 3=Copy 4=Delete 5=Display 6=Print 8=Run in batch 9=Run Opt Query Text Changed AGEBDGTSUM Budget Trans by Customer in Summary 10/19/05 AGECSTMDTL Detail U4TRND for a Selected Customer 10/25/07 AGECSTRSUM U4TRND Activity for Period CSTMR/Summary 12/13/06 AGEJRNLDTL Detail U4TRND by Journal by Customer 08/06/07 AGEJRNLSUM AR Records by GL Journal to Balance to Gen L 11/02/06 AGEPRPYSUM Prepay Trans by Customer in Summary 10/19/05 AGING U4AGIN/U4TRND IN SUMMARY BY CUST AGECSTSUM 10/19/05 APGLDETAIL 08/29/06 CUSTLIST1 Class - 11 x 8.5 - Customer Phone Listing 10/19/05 More... F3=Exit F4=Prompt F5=Refresh F11=Display names only F12=Cancel F19=Next group
19
Query Definition Options 4 Major Parts Define the query Files, Fields, Records selected Define the Query Query...... : CUSTLIST Option..... : CREATE Library.... : KARENQRY CCSID...... : 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options
20
Query Definition Options Define the report Headings, Totaling Fields, Report breaks Define the Query Query...... : CUSTLIST Option.....CREATE Library.... : KARENQRY CCSID.... 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options
21
Query Definition Options Define the output Display, Printer, File Define the Query Query...... : CUSTLIST Option....CREATE Library.... : KARENQRY CCSID... 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options
22
Query Definition Options Define the calculation results Rounding Define the Query Query...... : CUSTLIST Option.. CREATE Library.... : KARENQRY CCSID... 37 Type options, press Enter. Press F21 to select all. 1=Select Opt Query Definition Option Specify file selections Define result fields Select and sequence fields Select records Select sort fields Select collating sequence Specify report column formatting Select report summary functions Define report breaks Select output type and output form Specify processing options
23
Query Exercises Exercise 1 Create a list of COD customers Exercise 2 Create a list of customers and their pesticide certificate numbers
24
Thanks for attending!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.