I am getting difficulty in merging IFS files on AS/400.
I have a below requirement, please advise how to proceed.
I am getting 5 text files in AS/400 folder from window FTP server. i.e. PUT from Window into AS/400 folder. Then I have to merge these files into a single PF. Then my programs will use this PF for further process.
I am getting difficulty to merge these 5 .txt files in on 1 .txt file, once it done then I will convert it into PF by CPYFRMIMPF.
AS/400 IFS folder name: ?R3_222/NS? which is having 5 .txt files as (NSYYYYMMDDHHMMSS.txt format ? i.e.
NS20100901101000.txt
NS20100901102000.txt
NS20100901103000.txt
NS20100901104000.txt
NS20100901105000.txt
PF name R3_222/BKAC01I
PF definition is: ( field BKAC01I is 2 byte CCSID type O)
.....A..........T.Name++++++RLen++TDpB......Functi ons++++++++++++++++++++
*************** Beginning of data ***************************************
A R BKAC01IR
A BKAC01I 1024O
****************** End of data ******************************************
Many thanks in advance.
Regards,
Abhay
I have a below requirement, please advise how to proceed.
I am getting 5 text files in AS/400 folder from window FTP server. i.e. PUT from Window into AS/400 folder. Then I have to merge these files into a single PF. Then my programs will use this PF for further process.
I am getting difficulty to merge these 5 .txt files in on 1 .txt file, once it done then I will convert it into PF by CPYFRMIMPF.
AS/400 IFS folder name: ?R3_222/NS? which is having 5 .txt files as (NSYYYYMMDDHHMMSS.txt format ? i.e.
NS20100901101000.txt
NS20100901102000.txt
NS20100901103000.txt
NS20100901104000.txt
NS20100901105000.txt
PF name R3_222/BKAC01I
PF definition is: ( field BKAC01I is 2 byte CCSID type O)
.....A..........T.Name++++++RLen++TDpB......Functi ons++++++++++++++++++++
*************** Beginning of data ***************************************
A R BKAC01IR
A BKAC01I 1024O
****************** End of data ******************************************
Many thanks in advance.
Regards,
Abhay
Comment