Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
result = tcat( s1 : s2 [: s3 : s4 : ... ] );
result = bcat( s1 : s2 [: s3 : s4 : ... ] );
result = scat( c : s1 : s2 [: s3 : s4 : ... ] );
The concatenation procedures perform multiple concatenation operations simultaneously. There are 3 variations of the subprocedures:
/free userName = bcat(firstname : lastname); xmldata = tcat('<cust>':%char(custno):'</cust>'); csvData = scat(',' : compname : address : city : state : zipcode); /end-free
Up to 8 values may be concatenated at a time.
NOTE: The SCAT subprocedure allows multiple characters (not just single characters) for its first parameter (character-to-insert).
Return to RPGOpen.com