berthe
1st March 2004, 12:36
Hi,

I'm creating a report with some tools information, such as all modified program scripts, their name and the number of lines.
I can see it in the session ttadv2130s000, but is there a table where I can find this number of lines?

Thans in advance,
Berthe

zardoz
1st March 2004, 12:45
Isn't an information stored in tt tables.
But you can access this information using unix command wc (word count) on the script source.

berthe
1st March 2004, 12:50
Indeed, I can find some information in the table ttadv230, but not the number of lines.
We are not using UNIX, but Windows...

Berthe

NPRao
1st March 2004, 20:06
Berthe,

You can write a simple program to do the line counting -

num.lines = 0
fp = seq.open(path.script,"r")
if(fp < 1) then
mess("zmadms0036", 1, path.script)
|* File Opening Error: %1$s
return
endif
while not seq.gets(buff,1024,fp)
num.lines = num.lines + 1
endwhile
ret = seq.close(fp)

berthe
2nd March 2004, 15:57
Thanks Rao, I works fine!

Berthe