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

Easytreive : Logic needed


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

New User


Joined: 11 Oct 2005
Posts: 22

PostPosted: Wed Dec 26, 2007 5:34 pm
Reply with quote

HI,

Can any of you please tell the coding logic in EASYTRIEVE for the below SQL query.

SELECT DEPT NAME MAX(SAL)
FROM PRSNL-FILE
GROUP BY DEPT


ie. while creating a report, using Easytreive, with fields ( DEPT NAME SAL ) I have to calculate the max salary of each department.

Let me know if you need any further details.

Thanks in advace,

Prabhu.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Wed Dec 26, 2007 9:56 pm
Reply with quote

Yawn.


Yet another homework assignment?

You have already answered your own question. The DB2 query will retireve the max salary for each department. All you have to do now is format the report.

-----------------

Whay don't you students get study buddies?
Back to top
View user's profile Send private message
ESSPRABHU

New User


Joined: 11 Oct 2005
Posts: 22

PostPosted: Thu Dec 27, 2007 9:55 pm
Reply with quote

Hellow,

Instead of giving my requirement in words , I have given it in the form of SQL query.
We are not using DB2. I have to do that type of (finding max value) calculation using Easytreive. that's why I have asked Easytrieve logic.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 28, 2007 2:44 pm
Reply with quote

Does EASYTRIVE not have inbuilt functions such as MAX, MIN, MEAN ?
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Mon Dec 31, 2007 10:23 pm
Reply with quote

ESSPRABHU wrote:
Hellow,

Instead of giving my requirement in words , I have given it in the form of SQL query.
We are not using DB2. I have to do that type of (finding max value) calculation using Easytreive. that's why I have asked Easytrieve logic.



Did you try reading your Easytrieve manual? I found the answer rather easily (no pun intended).

-----------------------------------------------------------------------

Since you are trying to steal my job, at least earn it. Don't expect me to hand it to you on a silver platter.
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 Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
Search our Forums:

Back to Top