9

Writing Flexible Code

Introduction

Code for the Task

Capture Errors

Use Namespaces

Deploy JMP Scripts

JSL Functions

Parse Strings and Expressions

Pattern Matching and Regular Expressions

Use Expressions and Text as Macros

Functions: Pass By Reference Versus Value

Call SAS and R from JSL

Call Other Programs from JSL

Introduction

The word “flexible” is often used in the context of an object being able to bend without breaking, or something or someone being able to adapt to new circumstances (being able to change or be changed).

This chapter covers JSL objects and methods and our recommendations to help you write flexible scripts that run without breaking and are easily maintained or extended.

The first section, “Code for the Task,” provides ...

Get JSL Companion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.