For in general declare 1 struc based(strucp), 2 . . . 2 . . . ;
the statement allocate struc ; sets struc's default pointer, here strucp. If you want to set another pointer p then you write allocate struc set(p) ; If you wish to use struc only as a template, to map storage, call it block, then strucp = addr(block) ; permits the storage beginning at the address of block to be mapped as an instance of struc. Note that these statements do NOT in general initialize storage, though the allocate statement can do so if the elements of struc have the initial attribute. John Gilmore, Ashland, MA 01721 - USA ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
