× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Need to automagically transfer AS/400 flat file to PC c: drive
  • From: "BORING, David" <dboring@xxxxxxx>
  • Date: Tue, 31 Aug 1999 18:49:13 -0500
  • Cc: dbale@xxxxxxxxxxx

Dan,

One thing that I would do in your batch file is add an "if exist" statement
in there. This is one of the best ways of checking to make sure that the
drive is mapped, the directory exists, etc.

The command syntax is as follows:

if exist (criteria) (what to do if true)

And I believe it has an evil brother, "if not exist" (not sure about this
one, you may want to look it up).

For example, you could have the following lines:

if not exist c:\apchecks\*.* md c:\apchecks
copytopcd...

If you want some more assistance with this, please let me know and I'll
bring my old DOS book into the office. (You remember the one with the 5.25"
floppies in the back...)

I hope this helps.

David Boring
Systems Engineer
EDS E.solutions consulting
Direct: (562) 809-5460
E-mail: dboring@shl.com

-----Original Message-----
Date: Tue, 31 Aug 1999 14:34:40 -0400
From: "Dan Bale" <dbale@genfast.com>
Subject: Need to automagically transfer AS/400 flat file to PC c: drive

Currently, we have an application which includes a batch file (running in a
Win95 DOS window) that copies a file from the AS/400 shared folder to the
user's
C: drive.  I have been asked to "bulletproof" this thing.  More than a few
times, we have been called to determine and correct problems where this
batch
file has failed.  The file in the AS/400 shared folder gets there via:
     CPYTOPCD   FROMFILE(GFCHECK) TOFLR(APCHECKS) +
                  TODOC(GFCHECK.DDT) REPLACE(*YES)
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.