Reading Every Records on CLP – Using Record Format

At this time I will discuss about reading each record in a file in CLP using the record format in a file. To find out which file format to read, we can use the Display File Field Description (DSPFFD) command.

(more…)

Continue ReadingReading Every Records on CLP – Using Record Format

AS400 CLP Using CAT/BCAT/TCAT

Combining the two character variables on the AS400 CLP can use CAT, TCAT or BCAT. Here are the details:

  • CAT – concatenates 2 strings according to variable length (as is).
  • TCAT – concatenates 2 strings by ignoring variable lengths and removing trailing blanks for the first variable.
  • BCAT – concatenates 2 strings by ignoring variable lengths, removing trailing blanks on the first variable and adding spaces between the two variables.
(more…)

Continue ReadingAS400 CLP Using CAT/BCAT/TCAT