Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
CL Naming for Translate with CCSID
has no ratings.
Published: 24 Jun 2013
Revised: 24 Jun 2013 - 1370 days ago
Last viewed on: 25 Mar 2017 (2230 views) 

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.

CL Naming for Translate with CCSID Published by: Bob Cozzi on 24 Jun 2013 view comments(3)

We've got a bit of a naming issue here. We just built a CL command that allows you to translate data between CCSIDs. The idea is to allow you to translate CL variable data from one CCSID to another.

The command naming convention that we are using is CLxxxxxxx where the xxxxxxx is the real name and all the command names start with "CL" to avoid conflict when IBM "steals" the idea.

Do you, someone who codes regularly in CL, have any suggestions for a good name for this new command?

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: BrianR
Premium member *
Green Bay, WI
Comment on: CL Naming for Translate with CCSID
Posted: 3 years 9 months 1 days 11 hours 1 minutes ago

I'll give it a shot (don't know how good it is).  How about CVTCCSID (Convert CCSID), or if you're prefixing with "CL", then CLCVTCCSID?

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: CL Naming for Translate with CCSID
Posted: 3 years 9 months 1 days 8 hours 26 minutes ago
Edited: Mon, 24 Jun, 2013 at 14:03:27 (1370 days ago)

That's the name of the corresponding function (subprocedure) you'd call in RPG IV. So it is a good choice Brian.

Someone here suggested CLXLATE (CL xLate) but an issue I have with that is we already have a CLCase (CL convert case) command and the term XLATE might confuse people between case translation and ccsid translation; Not sure. Thanks for the suggestion.

Posted by: BrianR
Premium member *
Green Bay, WI
Comment on: CL Naming for Translate with CCSID
Posted: 3 years 9 months 1 days 8 hours 3 minutes ago

Glad you liked it.  The other problem with using XLATE is that people might think it refers to the same functionality as the RPG XLATE op code or function, which is entirely different than CCSID conversion.