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

Compare two elements in the same row of a table using ISPF


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sow6

New User


Joined: 04 Jul 2007
Posts: 8
Location: chennai

PostPosted: Thu Sep 27, 2007 11:45 am
Reply with quote

Hii

I want to compare two elements within the same row and see whether they match.I have added a table row containg the statistics of two different elements from a dataset in a single row.The processing should start if the elements match.Is there any way to do that without creating intermediate datasets using our normal comparision methods.Is there any solution for that using ISPF services like TBSCAN?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Sep 27, 2007 11:48 am
Reply with quote

You posted to the right forum,
but still You did not make Your question more clear !

regards

e.s.
Back to top
View user's profile Send private message
sow6

New User


Joined: 04 Jul 2007
Posts: 8
Location: chennai

PostPosted: Thu Sep 27, 2007 12:16 pm
Reply with quote

I have used the LMMLIST command to get the elements of two PDS members and the versions of each of them.I.I want to check whther the version of the element in one PDS matches with the one in the other PDS.
I have used ISPF table to store the version statistics of each of these members such that a single row will contain the elements and versions from two different PDS.Now i want to check whether these elements are the same to check their versions.What ISPF service can be used for this??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Sep 27, 2007 12:27 pm
Reply with quote

I would not rely on the ispf stats because they can be reset at any time,
Anyway, unless there is some additional constraint,
there is no need to store the stats in an intermediate dataset/table
You can process in parallel both pds and compare the stats on the fly,

but, as I already said, beware of ISPF/stats

regards

e.s
Back to top
View user's profile Send private message
sow6

New User


Joined: 04 Jul 2007
Posts: 8
Location: chennai

PostPosted: Thu Sep 27, 2007 12:33 pm
Reply with quote

Can u please eleborate me on what you mean by processing in parallel??Manual comparision??This is actually a tool prepared to do version check in PDS's containing large number of elements and will involve more overhead if done so.Or is their any other technique??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Sep 27, 2007 12:51 pm
Reply with quote

There is nothing to elaborate...

get the ispf stats for the "member" in the first pds,
save ZLVERS and ZLMOD

get the ispf stats for the "member" in the second pds,
save ZLVERS and ZLMOD

if ( zlvers1 = zlvers2 ) & ( zlmod1 = zlmod2 ) then do
......
end

still I stand by the first advice ...
" do not rely on ISPF statistics for version control "

regards

e.s.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top