Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to write the easytrieve logic for this requirement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Mon Jun 18, 2007 7:05 pm    Post subject: How to write the easytrieve logic for this requirement
Reply with quote

Hi,
Could anyone help me how to write the easytrieve logic for this requirement
There is a file fileA, in that there is a field stud no and depart name.
I have to extract the data of, stud no =1123 and depart name=c2345
and stud no=4567 and depart name=g7890.
If anybody send the piece of code in easytrieve it will be more usefull. Only main process is enough


Raj
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 19, 2007 9:20 am    Post subject:
Reply with quote

This can be done using SORT.
If you dont know Easytrieve then any reason to code in Easytrieve?
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Tue Jun 19, 2007 8:13 pm    Post subject:
Reply with quote

FILE INFILE
I-STUD-NO 01 04 A
I-DEP 05 04 A

FILE OUTFILE
O-STUD-NO 01 04 A
O-DEP 05 04 A

JOB INPUT INFILE

IF (I-STUD-NO = 1123 AND I-DEP = c2345) +
OR (I-STUD-NO = 4567 AND I-DEP =g7890)

O-STUD-NO = I-STUD-NO
O-DEP = I-DEP

PUT OUTFILE

END-IF
Back to top
View user's profile Send private message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Wed Jun 20, 2007 11:39 am    Post subject:
Reply with quote

Thanks a lot priya.

Raj
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Wed Jun 20, 2007 7:45 pm    Post subject:
Reply with quote

got the result.....
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 Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us