• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Append to Stream Files

    August 9, 2006 Hey, IT Jungle Forums

    Is there an OS/400 command that will let me append one stream file to another? I checked the Copy Object (CPY) command, but it only has a REPLACE(*YES/*NO) parameter, unlike Copy File (CPYF), which supports MBROPT(*REPLACE/*ADD).

    –Bruce

    This question was posted on the IT Jungle Forums. It seems odd that there is no direct method using CL commands to append one stream file to another. Chris gave examples of two methods that do the job.

    The first is to use Qshell’s >> redirection operator, which appends output to the destination file. Here’s how it would work in a CL program.

    QSH CMD('cd /MyFolder && cat file1.txt >> file2.txt')
    

    He also gave an example of using the FTP client.

    FTP localhost
    userid pwd
    namefmt 1
    append /myfolder/file1.txt /myfolder/file2.txt
    

    In this case, both client and server are running on the iSeries. For localhost, try the word LOOPBACK. If that doesn’t work, try 127.0.0.1.

    If you’d like to suggest another method, please add it to the thread at https://www.itjungle.com/itjforums/viewtopic.php?t=174.

    –Ted

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Trinity Guard

    Register to Attend Webinar: IBM i Network Security

    From exit point traffic to lesser visible socket connections, applications connect to IBM i in various forms and pose security risks.

    Join this 1-hour session to learn the how-to’s of securing network connections to your IBM i and safeguard against costly security breaches.

    Thursday, March 25
    12 Noon CT  / 10AM PT  /  1PM ET

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Bytware:  StandGuard Network Security 3.0, the next generation of System i security
    COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida
    Xperia:  Fully integrated suite of applications for small- to mid-sized companies

    CCSS Boosts Its Presence in North America IBM Rejiggers and Broadens i5 Capacity BackUp Edition

    Leave a Reply Cancel reply

Volume 6, Number 30 -- August 9, 2006
THIS ISSUE SPONSORED BY:

T.L. Ashford
Advanced Systems Concepts
Profound Logic Software

Table of Contents

  • Mystifying OS/400 and i5/OS Mathematics
  • Append to Stream Files
  • Admin Alert: Running Green-Screen Commands from OpsNav, Part 2

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Why Open Source Is Critical for Digital Transformation
  • mrc Refreshes IBM i Low-Code Dev Tool
  • Unit Testing Automation Hits Shift Left Instead of Ctrl-Alt-Delete Cash
  • Four Hundred Monitor, March 3
  • IBM i PTF Guide, Volume 23, Number 9
  • Doing The Texas Two Step From Power9 To Power10
  • PHP’s Legacy Problem
  • Guru: For IBM i Newcomers, An Access Client Solutions Primer
  • IBM i 7.1 Extended Out To 2024 And Up To The IBM Cloud
  • Some Practical Advice On That HMC-Power9 Impedance Mismatch

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2021 IT Jungle

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.