FTP from Unix to AS400 to EDI Server

as400

    Sponsored Links

    Next

  • 1. CHGSYSLIBL doesn't work
    Hi all, since my upgrade from V5R3 to V5R4, and switching security level from 30 to 40, this command will no longer work for our regular users. Error: Not authorized to command CHGSYSLIBL in library *LIBL. Mind you autorities have not changed, so *PUBLIC still has *USE autority to this command. Reason I need this (and I'm hoping someone can suggest other ways of accomplishing the same thing): This is a system with multiple languages. Primary language is English. However when a Dutch speaking user logs on, I want to put the QSYS2963 library before the QSYS library. This is done by a simple CL program that will retrieve the users' language from the userprofile and do a CHGSYSLIBL *ADD But it no longer works and now my Dutch users get English displays everywhere.... TIA -- Paul
  • 2. Hook a ticker to a iSeries
    Hi, This question is more on the hardware side. I would like to hook a digital display (ticker-like) to a V5R4 iSeries to display some information refreshed every x seconds. Using a PC, this could be easily done. But I don't want to monopolize a PC only for this application. So, does someone know where I should start looking for such a solution? Thanks Jack
  • 3. i5 515 and console problem
    Hi. I have an 9407-515 machine. It was working with direct attached console. Some time ago I've modified console configuration to use LAN console. It wasn't working that time and I forgot to change it back to direct attached local console. Now I'm trying to IPL that machine with console attached to it and machine stops for a long time on code C6004031. I belive server is looking for LAN console, and can't find it. Next code is A6005008. I tried opt. 25+26+65 to reset console but without any result. Is it possible to change console configuration from LAN to direct attached from server control panel? Regards, Tomasz
  • 4. SQL Trigger issue
    All, I have a file PEIS301 in EMSFILES on our system, it is the main employee file. Over the weekend I created an update SQL trigger that runs against this file, any time some select fields in this file are updated, the trigger writes the updated values into another table for our badge software. That way if someone changes their name in HR, the badge computer updates. It worked great for me. However, everyone else is having trouble now, specifically, all of the folks in HR who regularly use a program that has been in place for years to update employee information. They can't even get in to the program, what happens is they try to run it and it bombs out with a CPF4236. Looking at the job log, it says "Not authorized to open member GPS4100", "You do not have sufficient authority to open member GPS4100 file PEIS301 in library EMSFILES". I did a test, and gave one user *ALLOBJ special authority, and the problem went away for that user. But the kicker is, if I do an edtobjaut against file PEIS301 in library EMSFILES, it has *PUBLIC *ALL authority. I don't know how to grant it anything more that would allow the users to get in and use this object when the only thing I changed is create a SQL trigger against this file. Anyone have any ideas? Chris

FTP from Unix to AS400 to EDI Server

Postby k_morland » Wed, 17 Dec 2003 02:01:19 GMT

I have been working on an FTP issue that is driving me nuts.  And of
course it is one that is out of the ordinary.

A client sends us a file to the ISeries that is in a Data Stream which
uses the IFS.  I then send it down to our EDI server where they are
supposed to edit it.  (I just work here).  They then send me the
results which I forward back to the client.  The problem is that when
I send it binary, it adds low values to the end of the file which both
Aetna and our EDI group can't handle.  If I send it ASCII then  I have
a limit of 32,766 bytes.  I've tried using the TRIM command with no
effects.

Ex:
bin
namefmt 1
put /qsys.lib/kwmlib.lib/testfile.file/testmbr.mbr testfile

This example gives me the low values are spaces at the end.  Any help
would be appreciated.

Re: FTP from Unix to AS400 to EDI Server

Postby sclind » Wed, 17 Dec 2003 07:00:09 GMT



If the file starts in the IFS, then why do you bring it back into the
library file system?  Files in the library file system have fixed
lengths, and that is probably the source of your problem.

(BTW, a similar questions/answer was posted earlier).

Scott

Re: FTP from Unix to AS400 to EDI Server

Postby k_morland » Wed, 17 Dec 2003 21:56:55 GMT

Scott,
Actually, I am not bringing it back into the library file system.  On
this command I am trying to FTP the file from the IFS on the AS400
down to our server.

 





Re: FTP from Unix to AS400 to EDI Server

Postby sclind » Thu, 18 Dec 2003 06:47:18 GMT



This is the part that confuses me:

put /qsys.lib/kwmlib.lib/testfile.file/testmbr.mbr testfile

This is not a file in the IFS, this is a file in the 'traditional'
library file system.  It would have a fixed record length.

Scott

Re: FTP from Unix to AS400 to EDI Server

Postby Drew Dekreon » Thu, 18 Dec 2003 10:37:25 GMT

you could try issuing a
STRUCT F
in FTP before PUTting the file (treats as stream instead of records)
also
SITE TRIM 2
or
QUOT SITE TRIM 2
might help (always trims tailing blanks from records)





Re: FTP from Unix to AS400 to EDI Server

Postby Steve Landess » Thu, 18 Dec 2003 14:41:54 GMT

Technically, You're NOT ftp'ing the file from the IFS...

The file /qsys.lib/kwmlib.lib/testfile.file/testmbr.mbr on your iSeries
system is the file named TESTFILE that has a member named TESTMBR in library
KWMLIB.  The long name is simply the way to access this file in the library
file system via the IFS file system.

As Scott pointed out, this file should have fixed length records.

You can view the raw data in TESTFILE from a green screen (5250 emulation
session) using the command:

DSPPFM FILE(KWMLIB/TESTFILE) MBR(TESTMBR)

Once you are viewing the data on the "Display Physical File Member" screen,
press F10, then F11.

This will show the data in the file on three lines:
1) The first line shows the data in character (text) representation
2) The next line shows the first hexadecimal character of the data in hex
form
3) The next line shows the second hexadecimal character of the data in hex
form

Steve Landess
Austin, Texas
(512) 423-0935
















Similar Threads:

1.AS400 FTP to FTP Server Write problem

I have an FTP site on our W2K server (SP4) that I FTP files to from our
AS400. To do this I need write authority, which is OK, but users
accessing this site from a browser can upload/create anything on this
folder. Is there a way in Internet Information Services, or the folder
itself to stop users from writing to this folder yet still give me
rights to write to it? Permissions on the folder, or on IIS doesn't
seem to check the write privilages.
Anyone know how I can accomplish this?
Thanks.

2.FTP from UNIX to AS400

Hello All,

We receive the following message when we  transfer a flat text file in
ASCII from UNIX to AS400 ftp server :

Error [426-Records written to file FILE1 in library QGPL have been
truncated. Data in file may not be valid.
426 Data transfer ended.]"


Can someone explain the message and suggest how to transfer a file
without data corruption and without error messages. 

Thanks, 
Alona

3.export library to unix server by as400 box

Hi,

I wanted to know how to export(exportfs) a library by nfs to unix
server.Also please clear me what is mounting and exporting. why we use
nfs server for this.
Please reply.

Royy

4.Securely Connect AS400 to Unix Web Server

Good morning,

We are building a new website and need to securely send/receive data
to/from Unix web server.  I do not know anything about Unix/Linix
boxes and the guy whom I am working with does not know anything about
AS400/iSeries.
Any suggestions would be greatly appreciated.

We are running on:
9406-820
V5R2

Thank you in advance.
Gary


5.VB.NET - Issues with VB.NET FTP Class to UNIX FTP Server


6. "My Network Places" + FTP + Unix FTP Server == no symlinks or dotfiles displayed

7. FTP Problem from AS400 to Windows server 2003 IIS 6.0

8. AS400 FTP, can you launch a bat file on W2K3 server



Return to as400

 

Who is online

Users browsing this forum: No registered users and 65 guest