IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help in understanding % and Job stmt in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vishalkumar_g

New User


Joined: 18 Feb 2007
Posts: 3
Location: bhubaneswar

PostPosted: Tue Oct 02, 2007 11:14 am
Reply with quote

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
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Oct 02, 2007 11:50 am
Reply with quote

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?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Easytrieve EZABX007 with error code 0... CA Products 7
No new posts Converting SAS code to Cobol or Easyt... All Other Mainframe Topics 6
No new posts Easytrieve with SQL CA Products 1
Search our Forums:

Back to Top