z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Transferring data between partitioned and sequential data sets

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

When transferring data between partitioned and sequential data sets, ensure that the local_file and foreign_file parameters of the FTP subcommands are compatible with the type of data set you are transferring to or from. For example, if your local working directory is a partitioned data set and you want to GET the sequential file TEST.FILE1, you cannot issue the subcommand GET TEST.FILE1 to retrieve the file, because this subcommand by default tries to use the local PDS member name TEST.FILE1, which is not a valid member name.

To keep the local and remote file names compatible with the type of data set used, do one of the following:
  • Specify both the local and remote file names
    For example:
    GET TEST.FILE TESTFL1
    PUT TESTPDS(FILE1) FILE1
  • Change the directory to the lowest level qualifier.

    For example, to transfer between the PDS ‘USER14.TESTPDS(NAME1)’ and the sequential data set ‘USER17.SEQ.NAME1’, do the following:

    1. Change the local directory (LCD) to ‘USER14.TESTPDS’
    2. Change the directory (CD) to ‘USER17.SEQ’
    3. Enter one of the following:
      • GET NAME1 to get ‘USER17.SEQ.NAME1’ as ‘USER14.TESTPDS(NAME1)’
      • PUT NAME1 to put ‘USER14.TESTPDS(NAME1)’ as ‘USER17.SEQ.NAME1’

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).