I am seriously looking at replacing the FTPIng of save files with SNADS. I am working on automating the receive process. The files get sent very nicely, and I can receive them without a problem, except:
When I go intoWRKNETF on the remote IBM i, and prompt appropriately, I get the following screen:
Receive Network File (RCVNETF)
Type choices, press Enter.
From file . . . . . . . . . . . > 'QRPGSRC' Character value
To file . . . . . . . . . . . . *FROMFILE Name, *FROMFILE
Library . . . . . . . . . . . CURTLIB Name, *LIBL, *CURLIB
Member to be received . . . . . > 'AM0719' Character value, *ONLY
To member . . . . . . . . . . . *FROMMBR Name, *FROMMBR, *FIRST
When I enter the above screen, I receive the source member (or save file when I am receiving that) appropriately to the proper destination.
When I enter the following command from the command line (or generate it in a program I am writing to automate the process), I get an error:
Selection or command
===> RCVNETF FROMFILE(QRPGSRC) TOFILE(CURTLIB/QRPGSRC) FROMMBR(AM0719) TOMBR(*FROMMBR)
F3=Exit F4=Prompt F9=Retrieve F12=Cancel F13=Information Assistant
F23=Set initial menu
No files compare to the specified selection.
This is CPF0860:
Additional Message Information
Message ID . . . . . . : CPF8060 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 02/09/12 Time sent . . . . . . : 15:28:37
Message . . . . : No files compare to the specified selection.
Cause . . . . . : There were no network files that compare to the file,
member, and number values you specified.
Recovery . . . : Use the Work with Network File (WRKNETF) command to find
out what files exist.
Specify a file using one of the following:
--The FROMFILE parameter on the Receive Network File (RCVNETF) command.
--The FILE parameter on the RCVNETF command.
--The FILE parameter on the Delete Network File (DLTNETF) command.
Use the member (MBR) parameter and the number (NBR) parameter on the
DLTNETF command to specify one or more file members that exist in the
network files. Then, try the request again.
Press Enter to continue.
Entering the file number does not make any difference; putting the file name in quotes, as in the prompted screen, doesn't either. Neither does logging on as security officer.
Any ideas why the command line version does not work, but the prompted one does?
Thanks for your help.