vishalkumar_g
New User
Joined: 18 Feb 2007 Posts: 3 Location: bhubaneswar
|
|
|
|
hi,
I am relatively new to Easytrieve, can anybody help me understnd the meaning of % and Job stmt in an easytrieve with small example.I m confused as about the diff meaning of Job in Mainframes and Esytrieve.
Thanks and regards,
Vishal |
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vishal,
Quote: |
help me understnd the meaning of % and Job stmt in an easytrieve with small example |
'%' is called MACRO INVOCATION STATEMENT (both built-in as well as tailored macros).
Eg: GETDATE is a built macro. If you want to invoke this marco, typically your statement looks like -
Code: |
%GETDATE <macro parameters> |
For JOB statement (taken from manual) -
Quote: |
Activity sections can be any of the following:
· JOB
· SORT
· REPORT
JOB activities begin with a JOB statement and continue with
logic statements. The logic statements read, select and
manipulate data, print the data to reports, or write it to
an output file.
Each JOB activity can also contain user-written procedures
(PROCs) and REPORT subactivities.
The JOB statement begins JOB activity. You use
it to initiate processing and to identify the
automatic input file.
Syntax: JOB <INPUT file-name> <NAME job-name>
Example: JOB INPUT INVFILE NAME MONTHLY
If you don't specify an input file, EZT+ supplies
one based on your program:
- If you have a SORT activity right before the
JOB activity, it uses the SORT output file.
- Otherwise, it uses the first file defined in
the Library section.
The optional NAME parameter is used only for
documentation. We use it consistently in this course
to help you keep track of the various example jobs. |
For better understanding, EZT ACTIVITY SECTION is like COBOL PROCEDURE DIVISION where you code your program logic.
Quote: |
I m confused as about the diff meaning of Job in Mainframes and Esytrieve. |
JOB statement is a part of EZT ACTIVITY SECTION. This has nothing to do with MF job. Not sure why are you confused? |
|