Loading ...
Sorry, an error occurred while loading the content.

20757RE: [PBML] Searching 3 files?

Expand Messages
  • Scot Robnett
    Mar 31, 2005
    • 0 Attachment
      Try writing some code and letting the group help you modify it. Generally
      you will get better help if everyone sees you have at least tried something
      instead of asking for it to be done for you. These might help you get
      started:

      perlfunc
      (go to 'open FILEHANDLE')

      perlfaq2

      perlfaq3

      perlfaq4

      You can also find all of this information on CPAN, www.cpan.org.

      Scot R.
      inSite



      -----Original Message-----
      From: Jeff [mailto:g_garrison@...]
      Sent: Thursday, March 31, 2005 3:21 PM
      To: perl-beginner@yahoogroups.com
      Subject: [PBML] Searching 3 files?




      :q!
      Hi all-

      I'm trying to open a master file, and see if data in that file exists
      in the other two files, if not, report it. I just really suck at
      programing.. LOL I can conceptualize the steps involved, but can't
      seem to make it happen.

      Here's how my files look...


      Libr_Vols.csv
      400000,FF,home,"0,1,0,5,1",STK1R
      400001,FF,home,"0,1,18,13,0",STK1R
      400002,FF,home,"0,1,12,10,4",STK1R
      400003,FF,home,"0,1,18,0,11",STK1R
      400004,FF,home,"0,1,4,7,14",STK1R

      Libr_Scr.csv
      400002,FF,home,"0,1,12,10,4",100,STK1R
      400010,FF,home,"0,0,4,4,23",100,STK1R
      400011,FF,home,"0,1,19,10,7",100,STK1R
      400024,FF,home,"0,1,19,0,13",100,STK1R
      400038,FF,home,"0,1,15,1,2",100,STK1R
      400048,FF,home,"0,1,5,4,4",900,STK1R

      TSM_Usage.csv
      400001,FF,STGNEW,3/25/2005
      400003,FF,STGDELETE,3/7/2005
      400003,FF,STGNEW,3/7/2005
      400019,FF,STGDELETE,3/7/2005
      400021,FF,STGDELETE,3/10/2005
      400021,FF,STGNEW,3/10/2005


      Basically, open the file Libr_Vols.csv, then open Libr_Scr.csv and
      TSM_Usage.csv. If the value exists (for example 400002), then do
      nothing. If it can't be found in either of the two files (Libr_Scr or
      TSM_Usage) then throw it out to a log file.

      Any ideas on how to make it happen??

      Thanks in advance!!!!





      Unsubscribing info is here:
      http://help.yahoo.com/help/us/groups/groups-32.html
      Yahoo! Groups Links









      --
      No virus found in this incoming message.
      Checked by AVG Anti-Virus.
      Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005

      --
      No virus found in this outgoing message.
      Checked by AVG Anti-Virus.
      Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005
    • Show all 6 messages in this topic