Operating System - HP-UX
1753964 Members
7390 Online
108811 Solutions
New Discussion юеВ

fortran 90 on HP-UX 11.00 - asa carriage control

 
Network Support
Occasional Contributor

fortran 90 on HP-UX 11.00 - asa carriage control

We recently moved some fortran programs over from a 10.20 system to 11.00 (long story there!) At any rate, the output from the programs is using asa to intepret the carriage control codes. On 10.20 it worked fine. Now that it's on 11.00, the reports are double spacing instead of single spacing. Other than going to 11.00, nothing has changed.

Any suggestions? Thanks for the input.
3 REPLIES 3
Gregory Fruth
Esteemed Contributor

Re: fortran 90 on HP-UX 11.00 - asa carriage control

The "asa" command has a mode called XPG4
which behaves a little differently from the
normal mode. The man page says that
XPG4 mode handles newlines differently,
so perhaps you were unwittingly using XPG4
on 10.20 but not on 11.x, or vice-versa.

On 10.20 I believe you say "asa -u" to turn
on XPG4, while on 11.x you use the UNIX95
environment variable, e.g.

(ksh)
UNIX95= asa myfiles

(csh)
setenv UNIX95
asa myfiles

The "ps" command also has an XPG4 mode.
See its man page for more info.
Network Support
Occasional Contributor

Re: fortran 90 on HP-UX 11.00 - asa carriage control

I just wanted to say thank you because your suggestion fixed our problem! I probably never would have figured it out.

Thanks again!
Gregory Fruth
Esteemed Contributor

Re: fortran 90 on HP-UX 11.00 - asa carriage control

I'm glad it worked out. How about assigning
some points? Everybody likes points... :-)