Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i am need in vms, i wrote a procobol file which is used to extract data from datawarehouse, the output file will be in DAT format. i need to write a COM file which is use to seperate all the data frm the DAT file based on the scenario and mail to respective person.
logic will be:
1. after generated the DAT file,Search scenario by scenario and output to different files
2.search "scenario1","scenario2","scenario3". ..in DAT file and output to scenario1.dat,scenario2.dat, scenario3.dat...
3. verify whether the scenario1.dat,scenario2.dat, scenario3.dat... had any content by size
4.if had contents, then mail to respective person.
5. loop back again for next scenario until end of the scenario.

$ search file.DAT "scenario1" /output=scenario1.lis
$ search file.DAT "scenario2" /output =scenario2.lis
$ search file.DAT "scenario3" /output=scenario3.lis$ if f$file_attribute("scenario1.lis","ALQ") .gt. 0 then mail/subject="scenario1" scenario1.lis 'mailadress'
and so on.......

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |