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

Easytrieve - add counter


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rkarthik22

New User


Joined: 18 Apr 2009
Posts: 47
Location: India

PostPosted: Thu Apr 23, 2009 11:10 am
Reply with quote

Please help me out....

A1 - DE-ID
P1 PA-ID


I want to read the input file and …..
Suppose A1 has got “12345” as one record and “12345” as second record.. but the correspondind PA-ID has got two different values for the A1 values like this…

P1 A1

98765 12345
58974 12345

698745 36363
710398 36363

147892 903698
027007 903698

549712 539001

478930 145689
790397 145689
097033 145689
036472 145689

I want to add counters using Easytrieve program (as a separate field in the output file) like this

A1 - DE-ID
P1 PA-ID
C1  Counter

P1 A1 C1

98765 12345 1
58974 12345 2

698745 36363 1
710398 36363 2

147892 903698 1
027007 903698 2

549712 539001 1

478930 145689 1
790397 145689 2
097033 145689 3
036472 145689 4


Please help me out how to accomplish this using Easytrieve….

(I tried with using IF DUPLICATE ….but its not working, I think I have to use READ statement….please help me out..)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 4:16 pm
Reply with quote

Quote:
A1 - DE-ID
P1 PA-ID
You have a code page problem, seek help....
Adding a counter to output should be simple.
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 Apr 23, 2009 8:46 pm
Reply with quote

Hello,

Once you correct the code page problem, post the Easytrieve code that is not working/needs enhancement. Suggest you use the "Code" tag for readability.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Apr 23, 2009 9:01 pm
Reply with quote

Or just wait for a reply in the other forum where you posted the same question.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 23, 2009 10:06 pm
Reply with quote

he was told to use search in the future
and
was provided a link that is an example of his exact problem.

for others not able to keep up with this soap-opera,
seqnum was subject of the suggested solution.
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 Two input files & writing counter... DFSORT/ICETOOL 12
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 Sort counter to show records combination JCL & VSAM 2
No new posts Easytrieve EZABX007 with error code 0... CA Products 7
Search our Forums:

Back to Top