× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From: Richard Hart <rhart@ATCDG.COM>
> It would be interesting to implement a simple macro
> pre-processor on the MI front-end (CRTMIPGM) that Leif has kindly
> provided.  However, I am not quite that advanced yet!
>

if what you want to do is just a simple macro facility, you don't need
the S/36 manual.
There are two kinds of macros:
1) complicated ones, like
%DEFINE  INCR $1
    ADDN(S)    $1, 1
%END

and used like:  INCR MY-VAR;
to produce
          ADDN(s) MYVAR,1;

2) simple ones, like
%DEFINE NN=128

and used like:
DCL DD MYDATA CHAR(#NN);
to produce
DCL DD MYDATA CHAR(128);

----

1) is usually a bad idea
2) is really useful

------

2) is also easy to make.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.