• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. Report with List.

Stats

  • Replies 6
  • Subscribers 17
  • Views 10880
  • Members are here 0
More Content

Report with List.

vimaldevlpr
vimaldevlpr over 6 years ago

Hai,

I have two report in that i want generate a new report for equal refdes values i used some codes they were attached below.

procedure( compare()

out=outfile("report.rpt")

in1=infile("report1.rpt")

in2=infile("report2.rpt")

while(gets (str, in1)

if(str != nil then

inList = parseString(str ",")

a=car(inList)

)

)

while(gets (str1, in2)

if(str1 != nil then

inList = parseString(str1 ",")

b=car(inList)

(foreach x a

(foreach y b

if(x == y then

fprintf(out,"\n%L",x)

)

)

)

)

)

close(out)

close(in1)

close(in2)

)

For this it comes error; E-*Error* foreach: second argumentt must be a list

For example

Report1:                       Report2:

abc                                abc

bsd                                bcd

ccc                                 ccc

Result:

abc

ccc

Please anybody knows  share me the skill code i dont know how to do this.

  • Sign in to reply
  • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to B Bruekers

    Thanks a lot..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information