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 Removing the period or dot from the v... gopinak COBOL Programming 6 Wed May 09, 2018 1:53 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm

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