• Aucun résultat trouvé

Hewlett-Packard/Canada

Dans le document HP 2000 SERIES (Page 81-88)

FILIN, page 2

RUN

(.;' ~

-OnN-F" ILE IN'.12 RUN

DONE GET-F"ILIN RUN F"ILIN

DO YOU WANT INSTRUCTIONS?YES

F"ILIN IS USED TO LOAD A F"ILE F"ROM A KEYBOARD. BEF"ORE THE PROGRAM IS RUN A F"ILES STATEMENT MUST BE INCLUDED WHICH NAMES THE F"·ILE TO BE LOADED. THIS F"ILE MUST HAVE BEEN PREVIOUSLY OPENED.

WHEN THE PROGRAM ASKS F"OR INPUT, YOU MAY INPUT UP TO 72 CHARACTERS PER LINE. THE INPUT SHOULD CONSIST OF" NUMBERS OR CHARACTER STRINGS SEPARATED BY COMMAS. ANY INPUT WHICH CONF"ORMS TO ONE OF" THE STANDARD NUMERIC F"ORMATS IS CONSIDERED TO BE NUMERIC.

TO TERM INATE THE PROGRAM, TYPE -A.--'.:eof'ItTFrob--...c..! IN THE INPUT.

?

TITLE:

DESCRIPTION:

INSTRUCTIONS:

SPECIAL

CONSIDERATIONS:

ACKNOWLE:DGEMENTS:

CONTRIBUTED PROGRAM

BASIC

FILE LISTING PROGRAM/INSTRUCTIONS FIllS

36272 This program is a file lister. The program IlFILlS II contains the instruc-tions for the program IIFILlSIIi (which can be run directly).

Most of the needed instructions are contained in the program IIFILlSII.

The only other information needed is a description of Aardvark and Company Writing Team format for printing strings:

Control letters are printed with an apostrophe (I) over them:

A~~O~F~~IJ~t~NO~~~~T~'WXfZ

Lower case letters are printed with a period (.) over them:

ABCDE~G~IJ~lM~O~QaSTUVW~YZ

Characters with parity are darkened:

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Except space which is printed, when it has parity, as:

D

When you request the format option:

At the beginning of each record, the word IIFORMAT: II is printed followed by the format of that record in the form:

$ For a string

# For a number EOR For end-of-record EOF For end-of-fi1e

If a string is printed which has spaces at the end, the length of that string will be printed if the format option is requested.

The length appears in this form:

• Length (Length of string in characters)

A null string (a string containing 0 characters) will be printed as:

II Null Stri ng

The fil e IIASCII II must be open in the 1 i brary and prepared by the program IIASCIItli

The Aardvark and Company Writing Team has designed programs to take up an absolute minimum of computer storage and perform a maximum purpose. The team encourages people to send good programs to Aardvark. As a slight encouragement, the team will give anyone who sends a program which is accepted a free II su bscriptionli to the program handbook, and include the contributor as a member of the writing team.

Philip J. Tubb Aardvark and Company

2130 Bell Court

Lakewood, Colorado 80215

FILlS, Page 2

RUN RUN FILlS

DO YOU WANT INSTRUCTIONS?YES

EACH TIME PRINT AN * YOU MAY INPUT AN OPTION LIST AND A FILE NAME.

AN OPTION LIST IS ANY COMBINATION OF THE LETTERS LISIEIRIFI AND I FOLLOWED BY A COMMA. HERE IS WHAT THOSE LETTERS MEAN:

L INDICATES THAT THIS IS THE LAST FILE TO BE LISTED.

S CAUSES THE LISTING TO CONTINUE TO THE NEXT FILE AFTER THE FIRST EOF IS ENCOUNTERED IN THIS FILE.

E CAUSES THE PROGRAM TO SKIP RECORDS WHICH CONTAIN ONLY AN EOF MARK.

R CAUSES THE PROGRAM TO SKIP RECORDS WHICH CONTAIN ONLY AN EOR MARK.

F CAUSES THE FORMAT OF THE FILE TO BE PRINTED.

I ALLOWS YOU TO INPUT WHICH RECORDS ARE TO BE LISTED. THE PROGRAM WILL PRINT *** RECORD AND ALLOW YOU TO INPUT A NUMBER.

IT WILL LIST THAT RECORD 1 IF PRESENT 1 AND ASK FOR A RECORD NUMBER AGAIN. IF YOU ARE FINISHED LISTING RECORDS IN THAT FILEI

INPUT THE RECORD NUMBER AS O.

A FILE NAME CONSISTS OF THE NAME OF THE FILEI THEN (OPTIONALLY> A COMMA AND THE MASK TO BE USED.

HERE IS AN EXAMPLE OF THE INPUT WHICH WOULD BE USED TO LIST THE FILE 'MYFILE' USING THE MASK 'MYMASK' AND HAVING THE FORMAT PRINTED:

HERE IS THE SAME EXAMPLEI EXCEPT WITH NO MASK:

IF IT PRINTS AN * AND YOU HAVE NO MORE FILES TO BE LISTEDI PUSH RETURN.

*FIASCII

*FILINAME

*** FILE 1

*** RECORD FORMAT:

$$ EOR

'A~~~!'~~t8~~~~P~~ST~~WXT~['~t. !"#$%_'(>*+1-.10123456789:;<=>?

'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]t~iA~~~L.~WIJ~LMWQ~Q~iTWVWXYl'~~I.

EOR

*** RECORD 2 FORMAT:

$$ EOF

'A8e~EF~ftIDK~~PlftSTewwXT~["t.II"'SS_·()*+.-./01234S6789IJ< ->1 'ABCDEFGHIJKLMNOPQRSTUVVXYZ[\J'-'A8'~E¥;WIJK~QPQR5TVVWXYZ'~~I.

EOF

*** FILE 2

*** RECORD 2 FORMAT:

$$$$ EOR BARTLETT"MARY SE

ESR NOV EOR

*** RECORD 3 FORMAT:

$$$$ EOR BILLINGS"IRV SA

ESR NOV EOR

*** RECORD 0

DONE

TITLE:

DESCRIPTION:

INSTRUCTIONS:

CONTRIBUTED

LISTS FILE CONTENTS BY RECORD NUMBER

DATA HANDLING (100)

PROGRAM

BASIC

FILIST 36009 This program will list the contents of any file or files on the teleprinter.

'fore (nning this pt;Ogram declare your files in lire 8900. For/example:

8 00 FILES BFIL[', BUS~~ / i / ,

Befo each new 1

ist~ng

a user has the/option to s¢p 1 isting

ai

the fi

rsl

EOF ES, NO or QUIT). Multiple file~ may be list~d if they h . .ave been / dec 1 red in 1 i ne 89,00. Runn i ng the ~ogram wi 11 ~en te 11 yojJ the fil e/

nu er (l,2,3,etc.), record number, and contents ,for all the/declared files.

"J..(. 'f) -t\...( ~ ~ le .:\ ':'~\",J ~o ... ~ ~C\ ~ of

(' c:.,n'l'\tl<

~\.., ~i

I ;;'

~_hi I

-r +

'-~

11,

ACKNOWLEDGEMENTS: Joel F. Bartlett

Hewlett-Packard/Data Systems

; I

f i ,

RUN

GET-FILIST 8900 FILES F1 RUN

FILIST

STOP LISTING FILE 1 FILE 1 RECORD 1

AT THE FIRST EOF CY OR N OR Q)?Y

22 10 1 350100. 422505. 100 THIS IS A SAMPLE FILE 1 1 4 1 12 1 350300. 1 422503. 1 200

USED TO DEMONSTRATE THE FILE UTILITY CONTRIBUTED PROGRAMS FILE 1 RECORD 2

END OF FILE 1

STOP LISTING FILE 2 AT THE FIRST EOF CY OR N OR Q)1Q DONE

TITLE:

DESCRIPTION:

INSTRUCTIONS:

SPECIAL

CONSIDERATIONS:

ACKNOWLEDGEMENTS:

CONTRIBUTED

FI LE MANAGER

Dans le document HP 2000 SERIES (Page 81-88)