简体   繁体   中英

Use of *n in free format RPG

So, I have got a job where fully free format RPG is used (even the D-Specs are in free).

I am confused about the use of "*N" in various declarations. Like in data structures, procedure prototypes etc.

My general understanding is that it is used as some sort of a placeholder when declarations without a name is defined.

Can someone help in understanding this?

That's exactly right. *N indicates "no name". In free-form, you can't just omit the name completely the way you can in fixed-form, so *N is used as a place-holder. You use this for subfields, prototype-parameters, procedure interfaces, and unqualified data structures.

check out this recent question

RPG allows you overlay an array over the same memory location of other subfields in the same data struct. You declare nameless subfields in a data struct and give them initialize values. Then overlay the array over those sub fields, making those sub fields items in the array.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM