Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

seperate a file to different file

Original Message
Name: leng
Date: October 25, 2007 at 23:56:32 Pacific
Subject: seperate a file to different file
OS: alpha vms
CPU/Ram: 4
Model/Manufacturer: hp
Comment:
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.



Report Offensive Message For Removal


Response Number 1
Name: HakZan
Date: October 27, 2007 at 02:23:10 Pacific
Subject: seperate a file to different file
Reply: (edit)
$ 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.......



Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: seperate a file to different file 

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




VGA Card in 386 clone - dip-switche

Video/Graphics problem

Ping on DOS 6.22

netgear, onelevel

Ping on DOS 6.22


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC