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



This CL program copies the file.  You need to change the destination
(here fixed to P7HA)

  PGM        PARM(&OBJ &LIB)                          
  DCL        VAR(&OBJ) TYPE(*CHAR) LEN(10)            
  DCL        VAR(&LIB) TYPE(*CHAR) LEN(10)            
                                                      
  CRTDDMF    FILE(QTEMP/&OBJ) RMTFILE(&LIB/&OBJ) +    
               RMTLOCNAME(P7HA *IP)                   
  CPYF       FROMFILE(QTEMP/&OBJ) TOFILE(&LIB/&OBJ) + 
               MBROPT(*ADD) CRTFILE(*YES)             
  DLTF       FILE(QTEMP/&OBJ)                         
  ENDPGM                                              


On 10/20/2017 11:00 AM, T. Adair wrote:
When I FTP a PF from one System i to another, FTP will preserve the
filename and member name, but it (apparently always) changes the
record format name from whatever it was to the same as the filename.

Example:
PUT DS_DATA/DS_PRDXF.DS_PRDXF  DS_DATA/DS_PRDXF.DS_PRDXF

This successfully puts the DS_PRDXF file in the DS_DATA library on the
source system, into the same file/library on the target system.

So far, so good.  The problem is that the record format name on the
source system is DSPRDXFR, but FTP changes it to DS_PRDXF (same as the
filename) on the target system.

Why?

This file needs to be FTPed to multiple libraries on multiple systems.
I do not relish the thought of having to transfer the DDL source
member to each system, and then manually create the file in each
library on every system.

Is there an FTP setting to prevent this behavior?  I've searched the
archives, and I've Gaagled it, without success.  Does FTP simply not
ignore the record format name, and assign a default?

FTPing to the same library name (on a remote system) or to a different
library name makes no difference.  Same result.

All our systems are on 7.2.

As always, any guidance would be greatly appreciated.

~TA~



-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

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.