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
 

 

Is reference modification possible in Easytrieve

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

New User


Joined: 23 Mar 2007
Posts: 9
Location: USA

PostPosted: Thu May 31, 2007 9:29 pm    Post subject: Is reference modification possible in Easytrieve
Reply with quote

Is reference modification possible in Easytrieve? If possible please let me know how?

Thanks,
Vas
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 31, 2007 10:15 pm    Post subject:
Reply with quote

Hello,

Not the same way cobol provides.

To displace/modify use something like:

DATE-OF-HIRE 136 6 N
HIRE-MM DATE-OF-HIRE 2 N
HIRE-DD DATE-OF-HIRE +2 2 N
HIRE-YY DATE-OF-HIRE +4 2 N

If you describe what you want to accomplish, someone may have suggestions.
Back to top
View user's profile Send private message
cvasu03

New User


Joined: 23 Mar 2007
Posts: 9
Location: USA

PostPosted: Thu May 31, 2007 10:29 pm    Post subject: Re: Is reference modification possible in Easytrieve
Reply with quote

Thank you. My requirement is I am reading input file which is 80 byte long.
the key is first 5 bytes. I have two records with the same key.

I want to move the remaining 75 bytes data into another working storage field which is 150 bytes long.

Read two records from input file and populate the working storage field.
i.e. 75 + 75 = 150

Earlier I use to this kind of thing using reference modification in cobol. Now I want do this in Easytrieve.

Please help.

Thanks,
Vasu
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 31, 2007 11:42 pm    Post subject:
Reply with quote

Hello,

If you change the names & lengths on the example i used, you can have your working storage field with 2 "sub-fields" of 75 each - just make sure the second field has the +75 displacement.

If you are more comfortable with cobol terminology, think of it as a "redefines" of a larger field - like the date example above.
Back to top
View user's profile Send private message
cvasu03

New User


Joined: 23 Mar 2007
Posts: 9
Location: USA

PostPosted: Fri Jun 01, 2007 6:43 am    Post subject: Re: Is reference modification possible in Easytrieve
Reply with quote

thank you
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 01, 2007 7:01 am    Post subject:
Reply with quote

You're welcome icon_smile.gif
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 Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
This topic is locked: you cannot edit posts or make replies. MEMOAPIX - Searching for a Reference ... Steve Coalbran All Other Mainframe Topics 13 Wed Feb 03, 2016 12:01 pm
No new posts Query regarding Easytrieve program shanudarling All Other Mainframe Topics 2 Wed Jan 06, 2016 5:33 pm


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