How to concatenate 2 files in FTP card

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
surindersingh
Member
Posts: 5
Joined: Thu Aug 08, 2013 1:58 pm

How to concatenate 2 files in FTP card

Post by surindersingh » Mon Aug 12, 2013 7:16 am

I have a requirement where i need to concatenate 2 files in FTP card.
In existing FTP card there is only one file being FTPed as mentioned below:

ftpdata200
cd ftp
cd Test_Reporting
PUT 'File1(0)' +
test_RPT.D&&DATE.TXT
quit

Now i need to concatenate 2 files in this FTP card. I think it can be done as mentioned below: Please let me know if it is correct way of doing it or there is another way to do this?

ftpdata200
cd ftp
cd Test_Reporting
PUT 'File1(0)' + 'File2(0)' +
test_RPT.D&&DATE.TXT
quit

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Mon Aug 12, 2013 9:30 am

I would concatenate them on a DD statement in the JCL and put that, rather than attempting to do it within the FTP itself. However, outside of that, my guess (if your server supports it) would be to put the first file and append the second.

surindersingh
Member
Posts: 5
Joined: Thu Aug 08, 2013 1:58 pm

Post by surindersingh » Mon Aug 12, 2013 10:06 am

Thanks. I think first solution would be better than second one.
But for second solution, the FTP card i mentioned in my question is correct?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others