Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

REWRITE - unavailable (CrUn314)

F90 Impacts

Problem description

The REWRITE statement exists on Tru64 UNIX but not on HP-UX.

The REWRITE statement is a data transfer output statement that rewrites the current record. In the REWRITE statement, data (translated if formatted; untranslated if unformatted) is written to the current (existing) record in a file with direct access. The current record is defined to be the last record accessed by a direct acccess READ statement.

Identifiers

Fortran KeywordsREWRITE        

Old behavior

        PROGRAM main
        open (1, file="foo", access="direct", form="formatted", recl=80)
        write(1,1,rec=1) 'abc'
1       format(A10)
        write(1,1,rec=2) 'abc'
        write(1,1,rec=3) 'abc'
        read(1,1,rec=2)
        rewrite(1,1) 'xyz'
        end PROGRAM main

See also

Solution description

Support for the REWRITE statement is not currently planned for the HP Fortran compiler. The BACKSPACE statement provides the same functionality.

Note: HP Fortran allows sequential I/O statements to access a file connected for direct access.

New behavior

        PROGRAM main
        open (1, file="foo", access="direct", form="formatted", recl=80)
        write(1,1,rec=1) 'abc'
1       format(A10)
        write(1,1,rec=2) 'abc'
        write(1,1,rec=3) 'abc'
        read(1,1,rec=2)
        backspace(1)
        write(1,1) 'xyz'
        end PROGRAM main

See also


Problem summary

classifications source types OS release severity type
F90 Fortran any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.