FORTRAN 77 Language Reference

Name Requests

If your program is doing NAMELIST input from the terminal, you can request the group name and NAMELIST names that it accepts.

To do so, enter a question mark (?) in column two and press Return. The group name and variable names are then displayed. The program then waits again for input.

Example: Requesting names:


demo% cat nam4.f
* nam4.f Namelist: requesting names 
	CHARACTER*14 SAMPLE 
	LOGICAL*4 NEW 
	REAL*4 DELTA 
	NAMELIST /CASE/ SAMPLE, NEW, DELTA 
	WRITE ( *, * ) 'Input?' 
	READ ( *, CASE ) 
	END 
demo% f77 -silent nam4.f
demo% a.out
  Input?
¤?                                      <-- Keyboard Input
¤$case
¤sample
¤new
¤delta
¤$end
 
¤$case sample="Test 2", delta=0.03
$      <-- Keyboard Input
demo%