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
 

 

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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


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