× 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.



Just for fun:
On a PC start the NOTEPAD program.
Type the following three lines.

Test line 1
Test line 2
Test line 3

Save this file to your C drive and name it test.
It should be C:\test.txt

On your AS400 run the following command:
CRTPF FILE(QGPL/TEST) RCDLEN(80)
and press enter. Any library would do but I know QGPL exists on your system.

On your PC, from a DOS prompt, type:
FTP YourAS400NameOrIPAddress                (please type the name of your
AS400 or IP address)

Press enter.
When prompted for your profile, key your AS400 profile name and press enter.
When prompted for your password, key your AS400 password and press enter.

When you are conected, type:

put c:\test.txt qgpl/test

press enter and then type

quit

press enter

On the AS400 type the command:

dsppfm qgpl/test

You should see the data that you keyed into the file on your PC.
What you do with that data is up to you.

Dan Wiesner

----- Original Message -----
From: "Bruce Collins" <bacollins@twitchellcorp.com>
To: <rpg400-l@midrange.com>
Sent: Tuesday, November 27, 2001 1:29 PM
Subject: RE: Accessing IFS from RPG


please explain having them ftp then directly. I am new to using the IFS
so be gentle and full of details and examples.

Thanks

Hoss

-----Original Message-----
From: rob@dekko.com [mailto:rob@dekko.com]
Sent: Tuesday, November 27, 2001 1:17 PM
To: rpg400-l@midrange.com
Subject: RE: Accessing IFS from RPG



Since they are fixed length records, you could have them ftp them
directly
into your externally defined file.  Here's one idea though.  Define the
file internally as one big field.  After you check each substring for
data
validity, then move the one big field into an external data structure
based
on the file itself.  Then process the data structure fields as normal.

Rob Berendt

==================
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Bruce Collins"
                    <bacollins@twitchel       To:
<rpg400-l@midrange.com>
                    lcorp.com>                cc:
                    Sent by:                  Fax to:
                    rpg400-l-admin@midr       Subject:     RE: Accessing
IFS from RPG
                    ange.com


                    11/27/2001 02:17 PM
                    Please respond to
                    rpg400-l






the people will send me files daily and the way I had thought to do it
was to have them FTP them. They will be sending fixed length records in
these files. They will be doing this from a PC. Please if you can see a
better way then let me know. You will not hurt my feelings. <VBG>

Hoss

-----Original Message-----
From: Dan Wiesner - CC [mailto:dwiesner@charter.net]
Sent: Tuesday, November 27, 2001 12:58 PM
To: rpg400-l@midrange.com
Subject: Re: Accessing IFS from RPG


You don't need to have people FTP to the IFS if you don't want to.
Why are you using the IFS?
Dan Wiesner


----- Original Message -----
From: "Bruce Collins" <bacollins@twitchellcorp.com>
To: <rpg400-l@midrange.com>
Sent: Tuesday, November 27, 2001 11:34 AM
Subject: Accessing IFS from RPG


I am wanting my customers to ftp files to my AS400. I then want to be
able to pull the data from these files and build Externally Described
files on the AS/400 to hold the data. Has anyone done this and if so
could I get some examples.

TIA

Bruce Collins

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.