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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Compare two elements in the same row of a table using ISPF
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Sep 27, 2007 11:48 am    Post subject: Reply to: Compare two elements in the same row of a table us
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    Post subject: Reply to: Compare two elements in the same row of a table us
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Sep 27, 2007 12:27 pm    Post subject: Reply to: Compare two elements in the same row of a table us
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    Post subject: Reply to: Compare two elements in the same row of a table us
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Sep 27, 2007 12:51 pm    Post subject: Reply to: Compare two elements in the same row of a table us
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Group elements using ICETOOL Learncoholic DFSORT/ICETOOL 2 Fri Apr 14, 2017 11:01 am
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm


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