Previous Topic: How to Use CULLUS46Next Topic: Creating a Run-time Message (CULLUS48)


Helpful Hints

CULLUS46 counts from the first character in the string up to, but not including, the delimiter. If a delimiter is not found, the search fails and a value of -1 is returned to the designated work field.

Example 1—Using CULLUS46 Only

This example searches a 25-character input name field for the last name. The number of characters found in the last name is returned to a work field.

The following code:

REPORT NO. 52 CULLUS46 mm/dd/yy PAGE 1 NAME LENGTH OF LAST NAME JONES MARY 5 SMITH PETER 5 BROWN JACK 5 MACINTOSH JUNE 9 RICHARDS MICHAEL 8

Example 2—Using CULLUS46 Output for CULLUS45 Input

This example shows the CA Culprit parameters used to search for first and last names on input records by invoking CULLUS46 to supply the sending string length to CULLUS45 (variable-length move). CULLUS45 then moves the string to a work field.

The following code: