To start with you need to become a premium member to access all the pml section of this web site...
There is a excellant section for collections under it...
When you have collections mastered you need to use evaluations (to manipulate the collections)...a bit of maths and know how to write to a text file....
Put the following command in the command line
Q EVAR PMLLIB
Navigate to the path which is the outcome of the above command
under this folder you will find a folder named COMMON
In COMMON folder you will find FUNCTIONS folder
copy the file in FUNCTIONS folder
Run following commands,
PML REHASH ALL
PML INDEX
---All this is a one time activity................
Now you can call the function through command line using following command,
call !!pipemtoreport()