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

Is reference modification possible in Easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu May 31, 2007 10:15 pm
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
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

Moderator Emeritus


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

PostPosted: Thu May 31, 2007 11:42 pm
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri Jun 01, 2007 7:01 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts Reference documentation DFSDDLT0 IMS DB/DC 2
No new posts Trying to reference a javascript glob... CLIST & REXX 7
Search our Forums:

Back to Top