Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need help in understanding % and Job stmt in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Need help in understanding % and Job stmt in easytrieve
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: 1439
Location: Bangalore,India

PostPosted: Tue Oct 02, 2007 11:50 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Help in understanding what is th... mainakdalal PL/I & Assembler 9 Mon Oct 03, 2016 8:03 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Query regarding Easytrieve program shanudarling All Other Mainframe Topics 2 Wed Jan 06, 2016 5:33 pm
No new posts Adjust Heading Position in Easytrieve thesumitk CA Products 4 Mon Dec 21, 2015 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us