Joined: 18 Feb 2007 Posts: 3 Location: bhubaneswar
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.
Joined: 29 Jun 2006 Posts: 1439 Location: Bangalore,India
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 -
%GETDATE <macro parameters>
For JOB statement (taken from manual) -
Activity sections can be any of the following:
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.
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?