1 / 16

Formats and Formatted Input

Formatted Input. Similar to column input in that fixed column locations are assumed for variable valuesAllows for standard or non-standard numeric or character valuesNon-standard numeric: dates, numbers with commas and/or dollar signs12JAN2000$1,245.2311/21/02. For formatted input, the form of

ting
Download Presentation

Formats and Formatted Input

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Formats and Formatted Input STT 305

    2. Formatted Input Similar to column input in that fixed column locations are assumed for variable values Allows for standard or non-standard numeric or character values Non-standard numeric: dates, numbers with commas and/or dollar signs 12JAN2000 $1,245.23 11/21/02

    3. For formatted input, the form of the input statement is: input pointer-control variable informat … ; Pointer control is of the form @n — moves pointer to column n +n — moves the pointer n positions An informat specifies The width of the field to be read How (what type of data) to read the field Formatted Input

More Related