Presentation is loading. Please wait.

Presentation is loading. Please wait.

Once a physical file has been created, how can data be loaded into it? zDFU zSQL zCopy File zWrite a program.

Similar presentations


Presentation on theme: "Once a physical file has been created, how can data be loaded into it? zDFU zSQL zCopy File zWrite a program."— Presentation transcript:

1

2 Once a physical file has been created, how can data be loaded into it? zDFU zSQL zCopy File zWrite a program

3 List all of the steps required to create a program described file and to put data into it. zUse the CRTPF command to create the file with a specific record length zUse a ‘Copy’ command to copy data into the file, or SQL, or write a program, or DFU.

4 Working with Query/400

5 Query/400 zReport Generator Tool zCreates objects with the type *QRYDFN

6 Query/400 does the following: zSelection and arrangement of records in a file zSelection and placement of fields zSpecification of report breaks zAbility to examine a report layout and preview a report zAbility to print a report based on the contents of one or more files without programming. zAbility to create a file based on the contents of one or more files without programming.

7 To access Query/400 use the commands: STRQRY or WRKQRY

8 Creating A Query zSelect option 1 from Work with Queries zEnter query name and library where it is to be stored zPress enter!

9 Defining the Query zYou are presented with a list of selections. Place a 1 in the opt field beside those you want to use. The only one you must choose is File Selection. zChoose other selections as needed for sorting, editing fields, selecting of records, defining new fields, selecting output type, etc.

10 Query Demo zSingle File zMultiple Files

11 Helpful Tips zRemember to hit ENTER after making your selections zUse the ampersand (&) to indicate a space in edit words zYou can use field names in text areas by specifying the field name with an & in front of it. Eg. &DEPT Totals would yield text of Accounting Totals if DEPT was Accounting

12 Creating a Permanent DFU zSTRDFU, option 2 to create a DFU zname the DFU and choose the file zdefine general information screen: accept defaults zdefine Audit control: accept defaults zwork with record formats: select format zselect and sequence fields zwork w/fields: select #2 to change headings, do editing, validation, etc

13 DFU demo


Download ppt "Once a physical file has been created, how can data be loaded into it? zDFU zSQL zCopy File zWrite a program."

Similar presentations


Ads by Google