+ Reply to Thread
Results 1 to 3 of 3

Thread: Data Transfer from AS/400 to PC using VB

  1. #1
    Guest.Visitor Guest

    Default Data Transfer from AS/400 to PC using VB

    From a VB program I need to attach to the As/400 and retrieve a data file from a specified library. I do not need this to be fancy, I just need the data! Now for the hard part: 1) The AS/400 file has multiple members. 2) The data in the file is variable length. 3) I need to be able to control the positioning of the "CRLF". 4) I need to be able to suppress the "EOF" . 5) The file being created on the PC is a text file. If I use client access to transfer the file, the "CRLF" is placed after the last typed character in each record. The program that will read this file is expecting the "CRLF" to be in a specified position depending upon the record type. (Header, detail, footer) CA/400 also places a "EOF" character at the end of the text file. The program that reads the file will interpret this as an error. I am NOT a VB programmer, and I know just enough to be dangerous. I do know about ODBC. We have VB4.0 and are purchasing 6.0 If you can spare a minute PLEASE, I NEED CODE! Thank you for your help.

  2. #2
    Guest.Visitor Guest

    Default Data Transfer from AS/400 to PC using VB

    For a multiple member file, you may have to use OLE with ADO, rather than ODBC. ODBC has a tendency to return only the first member of a file. IBM provides an SDK with CA/400 (releases V3R2 and higher) for VB development with OLE and ADO. This used to be known as Project Lightning and with good reason. Record level access is possible using this method. That's the good news. The bad news is that it may be difficult to use. Dave

  3. #3
    Guest.Visitor Guest

    Default Data Transfer from AS/400 to PC using VB

    If it will make it easier, I can create seperate files on the AS/400 for each member.

+ Reply to Thread

Similar Threads

  1. Data Transfer (File Transfer) Extremely Slow on new 810
    By David Abramowitz in forum General
    Replies: 4
    Last Post: 05-23-2003, 01:13 PM
  2. Data Transfer Data Options for join
    By Guest.Visitor in forum General
    Replies: 1
    Last Post: 11-06-2002, 08:17 AM
  3. PC to AS/400 Data Transfer
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 02-15-2001, 09:55 AM
  4. Data Transfer to AS/400
    By Guest.Visitor in forum Programming
    Replies: 9
    Last Post: 04-20-2000, 06:20 AM
  5. Data Transfer/Data Options
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts