OPEN(UNIT=7,NAME='PROB.OUT',FORM='FORMATTED',STATUS='UNKNOWN')
This command assigns the unit number (=7) to which you will write the formatted information. Use a CLOSE command before you end your program; otherwise, the compiler may or may not close the file for you at the end of execution.
Remember to close the unit before your program terminates; i.e.: CLOSE(7)
for printing out every other element of the first 9 elements of array A, try
A(1) A(3) A(5) A(7) and A(9) are printed on one line
You can loop several arrayes at a time
Note that to use the NCAR graphics routine PLCHHQ, one needs to start GKS, have SET ranges defined, etc. If you are unfamiliar, consult our NCAR graphics documentation. Example usage can be found in the atmospheric science group software library.
Back to ATM 150 homepage