Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 6, 20242024-10-06T15:45:39+05:30 2024-10-06T15:45:39+05:30In: IBM i

How can i FTP to an iASP on my IBM i?

I am working on an iASP machine where an *SYSBAS and an independent auxiliary storage pool (IASP) is installed and I can FTP my save file to the *SYSBAS on the IASP machine from a non-IASP machine. However, I am facing an issue in doing FTP to the IASP device.

I have a library named SUPPORTLIB present on the ASP device on the IASP machine, and I was running the following command for FTP.

From the IBM i green screen command line, run the following command to FTP to the IASP machine system name.
FTP systemName

Once the FTP screen appears, Enter the following commands.

Login UserId -- of IASP machine --
password -- of IASP machine --

-- Once logged On, Executed below commands --
bin
namefmt 1
put /qsys.lib/libnameOnNonAspMachine.lib/SavefileNameOnNonAspMachine.savf
/qsys.lib/libnameOnAspMachineAspDevice.lib/SavefileName.savf

I tried the same above commands from the IASP machine itself and used the get FTP command instead of put FTP command there but failed.

Also, I was trying it from the Windows PC, i.e. I downloaded the save file from a non-IASP machine to the Windows PC and then tried to FTP the save file to the IASP device on the IBM i machine and did not succeed and failed. I am not able to figure out how to resolve the IASP device machine during FTP and none of the ASP device libraries are available while doing FTP causing the FTP error 550 Library XYZ not found.

Ran the following commands from the Windows Command prompt.

cd desktop
ftp systemname
Userid
password
--logged On--
quote site namefmt 1
put savefilename.savf /qsys.lib/libnameOnAspMachineAspDevice.lib/
SavefileName.savf

I also tried this but failed, but getting the message 550-Specified directory does not exist or cannot be accessed

cd desktop
ftp systemname
Userid
password
--logged On--
quote site namefmt 0
cd libNameonIASPdevice
as400ftpiasp
  • 0
  • 0
  • 22
  • 7
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • what is level check error and how to resolve level check error?
  • What are AS400 systems. Please provide a introduction of AS400 systems?
  • Is there any online server available for practicing on AS400 system?
  • What are the menus available in AS400?
  • What is subsystem in AS400?
  • How to copy a save file from IFS to a library?
  • How to transfer savf from as400 to pc?
  • How to copy ifs file to another directory?
  • How to copy savf from ifs to pc?
  • How to copy ifs file to physical file?
  • How to copy save file to ifs?
  • How to copy spool file to ifs?
  • How to copy physical file to ifs?
  • How to copy file from pc to IFS?
  • How to download spool file from AS400?
  • How do I delete a library in AS400?
  • How do I copy data from AS400 to excel?
  • What is library in AS400?
  • How to find all the source physical file available in AS400?
  • How to find all libraries in AS400?
  • How to change the library list in AS400?
  • What is access path in AS400?
  • What is the difference between source physical file and physical file in as400?
  • how to find the source file of an object in as400?
  • how to change record length of source physical file in as400?
  • What is cpf4174 error in as400?
  • What is the use of varying keyword in rpgle?
  • What is DDS in AS400?
  • What is the difference between PF and LF in as400?
  • Why do we use CHGPF command in AS400?
  • how to create physical file in as400?
  • What are the data types supported by physical files in AS400?
  • how to add data in physical file in as400?
  • how to view journal entries in as400?
  • what is the use of ovrdbf in as400?
  • What is an array in AS400?
  • what is a data queue in as400 and why do we use data queue?
  • How to run stored procedure in AS400?
  • How to resolve session and device error in AS400?
  • how to check as400 system values?
  • How to check triggers on a file in as400?
  • How to find damaged objects in AS400?
  • what is module in as400?
  • How to create binding directory in as400?
  • how to create ifs folder in as400?
  • What is ASP in AS400?
  • What is JOBQ and how to create a JOBQ in AS400?
  • What is PSDS in AS400?
  • What is SEU in AS400 and why do we use it?
  • What is the multi-format logical file in AS400?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-06T15:58:09+05:30Added an answer on October 6, 2024 at 3:58 pm
    This answer was edited.

    Here are all the possible ways you can do the FTP to an IASP instead of *SYSBAS on your IBM i machine.
    FTP from a Non-IASP machine to the IASP device on an IBM i machine using the PUT command:

    Please follow the following steps.
    On the Non-IASP machine command line, type FTP systemname and press Enter.
    Here, systemname is the name of the IASP machine. Now use the following FTP commands to FTP from a non-asp machine to an IASP on an IBM i machine using the PUT command.

    Using namefmt 1:

    UserId  -- Userid of the IASP machine --
    Password  -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    namefmt 1
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    put /qsys.lib/libnameOnNonAspMachine.lib/SavefileNameOnNonAspMachine.savf
      /qsys.lib/libnameOnAspDevice.lib/SavefileName.savf

    Using namefmt 0:
    Create a save file in the respective library on the IASP device first, then try the below FTP commands.

    UserId  -- Userid of the IASP machine --
    Password  -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    namefmt 0
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    cd /qsys.lib/libnameonaspdevice.lib
    put libnameOnNonAspMachine/SavefileNameOnNonAspMachine.savf
      SavefileName.savf (replace

    FTP from a Non-IASP machine to the IASP device on an IBM i machine using GET command:
    Please follow the following steps.

    On the IASP machine command line, First type SETASPGRP ASPGRP(IASP1) and press Enter. — (Replace IASP1 with your ASP device). Second, type FTP systemname and press Enter.
    Here, systemname is the name of the Non-IASP machine. Now use the following FTP commands to FTP from a non-asp machine to an IASP on an IBM i machine using GET command.

    Using namefmt 1:

    UserId  -- Userid of the IASP machine --
    Password  -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    namefmt 1
    get /qsys.lib/libnameOnNonAspMachine.lib/SavefileNameOnNonAspMachine.savf
      /qsys.lib/libnameOnAspDevice.lib/SavefileName.savf (replace

    Using namefmt 0:
    Create a save file in the respective library on the IASP device first then try the below FTP commands.

    UserId  -- Userid of the IASP machine --
    Password  -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    namefmt 0
    cd /qsys.lib/libnameonNonaspMachine.lib
    get SavefileNameOnNonAspMachine.savf libnameonAspdevice/SavefileName.savf 
         (replace         
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Admin
    Admin
    2024-10-06T16:02:11+05:30Added an answer on October 6, 2024 at 4:02 pm

    FTP from a Windows PC to the IASP device on an IBM i machine using the PUT command:

    Please follow the following steps. Assuming your save file is present on the Desktop.

    On the Windows PC open the DOS command prompt.

    Using namefmt 1:

    cd desktop
    ftp systemname
    UserId -- Userid of the IASP machine --
    Password -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    quote site namefmt 1
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    put SavefileNameOnDesktop.savf
    /qsys.lib/libnameOnAspDevice.lib/SavefileName.savf

    Using namefmt 0:

    Create a save file in the respective library on the IASP device first then try the below FTP commands.

    cd desktop
    ftp systemname
    UserId -- Userid of the IASP machine --
    Password -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    quote site namefmt 0
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    cd /qsys.lib/libnameOnAspDevice.lib
    put SavefileNameOnDesktop.savf SavefileName.savf

    FTP from an IASP device on an IBM i machine to a Windows PC using the GET command:

    Please follow the following steps. Assuming your save file is to be downloaded on the Desktop.

    On the Windows PC open the DOS command prompt.

    Using namefmt 1:

    cd desktop
    ftp systemname
    UserId -- Userid of the IASP machine --
    Password -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    quote site namefmt 1
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    get /qsys.lib/libnameOnAspDevice.lib/SavefileName.savf
    SavefileName.savf

    Using namefmt 0:

    cd desktop
    ftp systemname
    UserId -- Userid of the IASP machine --
    Password -- password of the IASP machine --
    --Once logged on to the IASP machine--
    bin
    quote site namefmt 0
    quote rcmd setaspgrp aspgrp(IASP1) -- replace IASP1 with your asp device--
    cd /qsys.lib/libnameOnAspDevice.lib
    get SavefileNameOnIASPdeviceLibrary.savf SavefileName.savf
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    what is level check error and how to resolve level ...

    • 1 Answer
  • Admin

    What are AS400 systems. Please provide a introduction of AS400 ...

    • 1 Answer
  • Admin

    Is there any online server available for practicing on AS400 ...

    • 1 Answer
  • Admin

    What are the menus available in AS400?

    • 1 Answer
  • Admin

    What is subsystem in AS400?

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.