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

Whether CALC Records will have Duplicates options?


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Jul 27, 2005 10:49 am
Reply with quote

Whether CALC Records will have Duplicates options? that is other than DN... If DF & DL are alloweed, How come we could fetch the record with all duplicates using CALC?
Back to top
View user's profile Send private message
Pjoe

New User


Joined: 22 Jul 2005
Posts: 17

PostPosted: Sat Jul 30, 2005 2:01 pm
Reply with quote

Hi,

Yes, calc records can have duplicate option.

The processing can be done as follows.


000-calc-para.
move ws-key to record-key.
obtain calc record
on db-rec-not-found
go to 000-exit
end-if.
move 'n' to ws-end.
peform 100-duplicate-para thru 100-exit until ws-end ='y'.............
000-exit
exit.

100-duplicate-para.
obtain duplicate record
on any-error-status
move 'y' to ws-end
go to 100-exit
end-if.
if ws-key == record-key
display 'i am a duplicate'
else
move 'y' to ws-end.
100-exit.
exit.

lemme know if you have any issues?

PJ
Back to top
View user's profile Send private message
Pjoe

New User


Joined: 22 Jul 2005
Posts: 17

PostPosted: Sat Jul 30, 2005 2:01 pm
Reply with quote

Hi,

Yes, calc records can have duplicate option.

The processing can be done as follows.


000-calc-para.
move ws-key to record-key.
obtain calc record
on db-rec-not-found
go to 000-exit
end-if.
move 'n' to ws-end.
peform 100-duplicate-para thru 100-exit until ws-end ='y'.............
000-exit
exit.

100-duplicate-para.
obtain duplicate record
on any-error-status
move 'y' to ws-end
go to 100-exit
end-if.
if ws-key == record-key
display 'i am a duplicate'
else
move 'y' to ws-end.
100-exit.
exit.

lemme know if you have any issues?

PJ
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 -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 5
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:

Back to Top