Inspect Manual

Using Inspect With FORTRAN
Inspect Manual429164-006
11-10
Records
This example displays the entire array:
-FORTOBJ-DISPLAY a
A[1,1] = 101 201 301 401 501 601 701 801 901 1001
A[1,2] = 102 202 302 402 502 602 702 802 902 1002
A[1,3] = 103 203 303 403 503 603 703 803 903 1003
A[1,4] = 104 204 304 404 504 604 704 804 904 1004
A[1,5] = 105 205 305 405 505 605 705 805 905 1005
A[1,6] = 106 206 306 406 506 606 706 806 906 1006
A[1,7] = 107 207 307 407 507 607 707 807 907 1007
A[1,8] = 108 208 308 408 508 608 708 808 908 1008
A[1,9] = 109 209 309 409 509 609 709 809 909 1009
A[1,10] = 110 210 310 410 510 610 710 810 910 1010
A[1,11] = 111 211 311 411 511 611 711 811 911 1011
A[1,12] = 112 212 312 412 512 612 712 812 912 1012
A[1,13] = 113 213 313 413 513 613 713 813 913 1013
A[1,14] = 114 214 314 414 514 614 714 814 914 1014
A[1,15] = 115 215 315 415 515 615 715 815 915 1015
A[1,16] = 116 216 316 416 516 616 716 816 916 1016
A[1,17] = 117 217 317 417 517 617 717 817 917 1017
A[1,18] = 118 218 318 418 518 618 718 818 918 1018
A[1,19] = 119 219 319 419 519 619 719 819 919 1019
A[1,20] = 120 220 320 420 520 620 720 820 920 1020
Records
Inspect supports FORTRAN records, as shown in this example, which assume this
FORTRAN declaration:
RECORD REC
CHARACTER*6 DATE
FILLER*4
CHARACTER*6 AMOUNT
END RECORD
This example shows the internal attributes of the record:
-FORTOBJ-INFO IDENTIFIER rec
REC: VARIABLE
storage^info:
TYPE=BYTE STRUCT, ELEMENT LEN=8 BITS, UNIT SIZE=16 ELEMENTS
access^info:
'L'+%11S WORDS
structure^info:
CHILD=DATE
This example shows the internal attributes of one of the fields:
-FORTOBJ-INFO IDENTIFIER rec^date
DATE: VARIABLE
storage^info:
TYPE=CHAR, ELEMENT LEN=8 BITS, UNIT SIZE=6 ELEMENTS
access^info:
(parent)+0 WORDS
structure^info:
PARENT=REC,SIBLING=AMOUNT