Code, modify, test, correct and document new and existing programs using assigned languages, tools and coding conventions. Currently seeking for a Junior to Senior Cobol Developers who can join asap! Skills : As , Cobol. Work with Computer Operations team to monitor pro-active and reactive alerts coming from various tools. We are seeking for Junior and Senior Cobol Developers.
|Published (Last):||8 June 2010|
|PDF File Size:||8.40 Mb|
|ePub File Size:||2.65 Mb|
|Price:||Free* [*Free Regsitration Required]|
Language English. Product Menu Topics. Create and Format a Report. This article includes the following information:. This article includes basic information about creating a report.
For more detailed examples and information about the features and options that are available in all implementations of the product, see the other articles in the Using section and the Language Reference section.
Create a Report. When specified, this program produces a formatted report including date, page number, title, column headings, properly spaced detailed lines, and more as follows:. Ask your system administrator where it is stored at your site.
The first line of this program contains the FILE statement. A FILE statement must be included for every file you use as input to or output from your program. It tells the program where to get the data that you want processed and can also describe how the data is stored.
For example, we could have specified:. You can also add conditional statements and calculations for salary deductions. The JOB statement indicates the beginning of some form of processing. The JOB statement can also automatically provide input if input is available to the processing statements that follow it.
Automatic Input. In that case, the program uses the output from that SORT. Naming a JOB Activity. NAME indicates that a job name follows. The IF Statement. In the previous report program, we have only extracted some data from a file and printed it out. You can also include IF statements to add conditions to the program. Because net pay take home pay is the gross pay minus any deductions, you realize that you must determine what to deduct.
You can state this condition as follows with a simple conditional expression:. In the previous expression, if the gross pay is greater than or equal to , deduct 28 percent to obtain the net pay. Otherwise, if the gross is less than , there are no deductions and net pay equals gross pay. CA Easytrieve Report Generator. Working Storage. To define a working storage field, use the same type of attributes that are used to describe other fields.
However, use the letter W to replace the numeric value that typically describes the start location. The code describes two working storage fields, four characters in length, in packed decimal format, with two decimal places. If the report name is not included, the first report in the JOB activity section is executed regardless of whether it has a name. A report declaration consists of a series of statements that define the format and content of a report.
So far, we have seen three such statements in our sample program:. When the report statements have been executed, control is returned to the beginning of the JOB activity section where the next record is processed or end of file processing is performed.
All output routines, line counts, and page advances are handled automatically. The LINE statement is responsible for printing detail lines on the report. It tells the program what fields to print and the order in which to print them.
New Sample Program. We can run our updated program to generate a report. The updated program with all the changes that we have described in this article is:. The sample output from this program follows. Format Report Output. You can also define custom field headings. Edit Masks. An edit mask is a pattern of characters that specify how numeric data should be printed. Alphanumeric fields cannot be edited. In the following example, edit masks have been added to the three currency fields in our example program so they print with dollar signs:.
Masks are always enclosed in single quotes. The effect on our report of adding these masks is as follows:. Any leading zeros are suppressed and each value has a dollar sign. Field Headings. So far in our example program, field or column headings have come directly from the field names themselves. The program automatically uses field names specified on the DEFINE statement as column headings, unless column headings are described separately.
Placing each word in single quotes indicates that the headings should be printed on separate lines, one word over the other. The following example shows how the new heading prints when the program is run:.
mainframe cobol jcl easytrieve Jobs
Language English. Product Menu Topics. Create and Format a Report. This article includes the following information:. This article includes basic information about creating a report. For more detailed examples and information about the features and options that are available in all implementations of the product, see the other articles in the Using section and the Language Reference section. Create a Report.
Post a Comment. Mainframe Tips, Tricks And Tutorials. Pages Home. An introduction to Easytrieve. The below tutorial gives brief overview of Easytrieve. Structure of an Easytrieve program. Contains 3 sections.
CA-Easytrieve/Plus – Basics
Check here to start a new keyword search. Search support or find a product: Search. Search results are not available at this time. Please try again later or use one of the other support options on this page.
The environment definition section establishes parameters for the program. The library definition section describes the data the program is to process. It describes data files and their associated fields and any working storage requirements of the program. The activity definition section is the only mandatory section of your program. Files with records in alphabetical or numerical order. In here, files that are going to be used in the program should be declared by using keyword FILE. Note: It is not necessary to declare all the fields in your input file.