TechTalk: Retrieving the S36 LDA from CL.

CL
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Q: I want to use the CALL CL command in a S/36 procedure to call a CL program that needs to access the S/36 local data area (LDA). How do I go about retrieving the S/36 LDA from a CL program?

- Willie Moore

A: To retrieve a value from the LDA in your CL program, use the Change Variable (CHGVAR) command as shown here:

 CHGVAR VAR(&NAME) + VALUE(%SST(*LDA 101 10)) 

In this command, &NAME is a character variable with a length of 10, the LDA start position is 110, and the length of the retrieved value is 10.

- Terence Barstow

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$