Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Need a script to compare modules with same names in 2 different paths using IBM DOORS DXL

Need DXL script to compare names of the modules that are located in 2 different folders in DOORS


For example, if there are 10 modules in one folder and 8 modules in another folder, the script needs to compare and find out both similar module names and dissimilar module names

0 votes



2 answers

Permanent link

 Folder f1 = folder("Give folder1 name here")

 Folder f2 = folder("Give folder2 name here")

Item itm1, itm2

string s1, s2

for itm1 in f1 do
{
if(type(itm1)=="Formal")
{
s1=name(itm1)

for itm2 in f2 do
{
if(type(itm2)=="Formal")
{
s2=name(itm2)

if(s1==s2)
{
print "Module name '" s1 "' is same in both folders""\n"
}
}
}
}
} 

0 votes


Permanent link

 Folder f1 = folder("Give folder1 name here")

 Folder f2 = folder("Give folder2 name here")

Item itm1, itm2

string s1, s2

for itm1 in f1 do
{
if(type(itm1)=="Formal")
{
s1=name(itm1)

for itm2 in f2 do
{
if(type(itm2)=="Formal")
{
s2=name(itm2)

if(s1==s2)
{
print "Module name '" s1 "' is same in both folders""\n"
}
}
}
}
} 

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 29 '19, 5:12 a.m.

Question was seen: 2,686 times

Last updated: Oct 05 '20, 1:42 a.m.

Confirmation Cancel Confirm