Simpact Freeway 1200 Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour Serveurs Simpact Freeway 1200. Simpact Freeway 1200 User`s guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 118
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Programmer’s Guide

Simpact, Inc.9210 Sky Park CourtSan Diego, CA 92123 BSCTRAN Programmer’s Guide DC 900-1406E March 1999

Page 2

10 DC 900-1406E BSCTRAN Programmer’s Guide • A Freeway communications server or an embedded ICP that runs the BSC com-munications software • VAX/VMS

Page 3 - Contents

100 DC 900-1406EBSCTRAN Programmer’s Guide

Page 4

DC 900-1406E 101Chapter6CautionsThe following is a list of cautions that users of the BSC File Transfer program shouldheed.• The default size is 1024

Page 5 - List of Figures

102 DC 900-1406EBSCTRAN Programmer’s Guide• When transmitting 3780 executable-image files between VMS or UNIX sites, usethe commands SEND /TRANS /BINAR

Page 6

DC 900-1406E 103Chapter7Example BSCTRAN UsageNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP. For the embe

Page 7 - List of Tables

104 DC 900-1406EBSCTRAN Programmer’s Guide7.1 DLI Configuration File ExampleFigure 7–1 is an example of a DLI configuration file that defines several sess

Page 8

7: Example BSCTRAN UsageDC 900-1406E 105//------------------------------------------------------------------//// Define 16 port names for Freeway 0, I

Page 9

106 DC 900-1406EBSCTRAN Programmer’s GuideFWY0B0L3{ Protocol = "RAW"; // RAW session type // Transport = &qu

Page 10

7: Example BSCTRAN UsageDC 900-1406E 1077.2 TSI Configuration File Example (Freeway Server Only)Figure 7–2 is an example of a TSI configuration file that

Page 11

108 DC 900-1406EBSCTRAN Programmer’s Guide//----------------------------------------------------------------------------//// bsc0: TCP socket interfac

Page 12

7: Example BSCTRAN UsageDC 900-1406E 1097.3 Command Procedure ExampleThe VMS DCL command procedure shown in Figure 7–3 demonstrates most of thecomman

Page 13 - SET /START command

Preface DC 900-1406E 11 Simpact References The following documents provide useful supporting information, depending on thecustomer’s particular hardw

Page 14 - Customer Support

110 DC 900-1406EBSCTRAN Programmer’s Guide$ ! Set up to catch fatal errors if BSCTRAN has to abort.$ ON ERROR THEN GOTO END$ ! Set to echo the BSCT

Page 15 - Program Overview

7: Example BSCTRAN UsageDC 900-1406E 111SET 2 /STOP ! Disable to reconfigure link to sendSET 3 /STOP ! transparent data!SET 2 /PAR10=0/PAR19=0 ! Turn

Page 16 - 1.2 BSCTRAN Modules

112 DC 900-1406EBSCTRAN Programmer’s Guide

Page 17

DC 900-1406E 113IndexAAbortBSCTRAN 35, 40, 41, 45, 95, 97, 98Audience 9BBinary data 41, 45, 46CCaution (BSCTRAN)binary data 42, 45ICP message buffer 3

Page 18 - 18 DC 900-1406E

114 DC 900-1406EBSCTRAN Programmer’s GuideDDCL command procedureexample 109DLI configuration fileexample 104Documentsreference 11Download ICP 28EErrorco

Page 19 - BSCTRAN Commands

IndexDC 900-1406E 115BSCWRIT 87ProductprogramsBSCTRAN 15support 14QQueueVMS system batch 34VMS system printer 34RRecordattributes 48concatenation 42,

Page 20

116 DC 900-1406EBSCTRAN Programmer’s Guide

Page 21

BSCTRAN Programmer’s GuideDC 900-1406ECustomer Report FormWe are constantly improving our products. If you have suggestions or problems you wouldlike

Page 22

Simpact, Inc.Customer Service9210 Sky Park CourtSan Diego, CA 92123

Page 23

12 DC 900-1406E BSCTRAN Programmer’s Guide Embedded ICP Installation and Programming Support • ICP2432 User’s Guide for Digital UNIX DC 900-1513 • IC

Page 24

PrefaceDC 900-1406E 13Document ConventionsThe term “Freeway” refers to any of the Freeway server models (for example, Freeway1100/1150/1200/1300, Free

Page 25 - 2.1.4.2 UNIX Logging

14 DC 900-1406EBSCTRAN Programmer’s GuideCustomer SupportIf you are having trouble with any Simpact product, call us at 1-800-275-3889 Mondaythrough F

Page 26 - 2.2 HELP Command

DC 900-1406E 15Chapter1BSCTRAN File Transfer Program OverviewNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded I

Page 27

16 DC 900-1406EBSCTRAN Programmer’s Guide1.1 Freeway Server versus Embedded ICP VersionThe Freeway server version of BSCTRAN uses the Freeway data lin

Page 28 - 2.3 SHOW Command

1: BSCTRAN File Transfer Program OverviewDC 900-1406E 17The five modules are as follows:1. User-interactive or Batch Program (BSCTRAN)2. File Transfer

Page 29

18 DC 900-1406EBSCTRAN Programmer’s Guide

Page 30 - 30 DC 900-1406E

DC 900-1406E 19Chapter2BSCTRAN Commands and OptionsNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP. For th

Page 31 - 2.4 SET Command

Simpact, Inc.9210 Sky Park CourtSan Diego, CA 92123(619) 565-1865BSCTRAN Programmer’s Guide© 1994 through 1999 Simpact, Inc. All rights reservedPrint

Page 32

20 DC 900-1406EBSCTRAN Programmer’s GuideRECEIVEReceive a file from a remote BSC station.EXITTerminate processing.Comments are allowed on the BSCTRAN c

Page 33

2: BSCTRAN Commands and OptionsDC 900-1406E 212.1.1 Server Field in BSCTRAN CommandsMany of the BSCTRAN commands include a server parameter. Note that

Page 34

22 DC 900-1406EBSCTRAN Programmer’s GuideFor a detailed view of a sample Freeway server dlitrancfg file, refer to Section 7.1 onpage 104. Note how in o

Page 35

2: BSCTRAN Commands and OptionsDC 900-1406E 23NoteBSCTRAN is designed to have sessions active on only one ICP at atime. When you use any command to ac

Page 36

24 DC 900-1406EBSCTRAN Programmer’s Guide2.1.3 Important Considerations for Freeway ServerNote the following important considerations before using BSC

Page 37

2: BSCTRAN Commands and OptionsDC 900-1406E 252.1.4 BSCTRAN Logging2.1.4.1 VMS Logical Names and LoggingBSCTRAN supports the use of VMS logical names

Page 38

26 DC 900-1406EBSCTRAN Programmer’s Guide2.2 HELP CommandThe HELP command displays the format for all legal BSCTRAN commands. It takes noargument. Fig

Page 39 - 2.6 DIAL Command

2: BSCTRAN Commands and OptionsDC 900-1406E 27NoteThe server parameter is not the server name, but is a pointer tothe server name. It is important tha

Page 40 - DEFAULT /ABORT option

28 DC 900-1406EBSCTRAN Programmer’s Guide2.3 SHOW CommandThe SHOW command has the following format:SHOW link# server[_ICP#] [/DEFAULT] [/STATS] [/CLEA

Page 41 - 2.7 SEND Command

2: BSCTRAN Commands and OptionsDC 900-1406E 29See the BSC Programmer’s Guide for a complete description of ICP link configurationparameters.The SHOW co

Page 42 - /TRANS and

DC 900-1406E 3 Contents Contents 3List of Figures 5List of Tables 7Preface 91 BSCTRAN File Transfer Program Overview 15 1.1 Freeway Server versus Emb

Page 43 - /NOTEOF option

30 DC 900-1406EBSCTRAN Programmer’s GuideBSC> SHOW 2 spot_1 /STATS /CLEAR ! Statistics before clearingCURRENT STATISTICS FOR LINK #2:Recv data mess

Page 44

2: BSCTRAN Commands and OptionsDC 900-1406E 312.4 SET CommandThe SET command has the following format:SET link# server[_ICP#] [/PARn[=d]] [/PARn[=d]..

Page 45

32 DC 900-1406EBSCTRAN Programmer’s GuideCautionBe aware of the implications of using the SET /LOCKSTART com-mand. After a link is enabled with /LOCKS

Page 46

2: BSCTRAN Commands and OptionsDC 900-1406E 332.5 DEFAULT CommandThe DEFAULT command has the following format:DEFAULT [/FILE=filename] [/F

Page 47

34 DC 900-1406EBSCTRAN Programmer’s Guide/[NO]PRINT If this VMS option is enabled, each received file will be auto-matically queued to the system print

Page 48 - 48 DC 900-1406E

2: BSCTRAN Commands and OptionsDC 900-1406E 35/[NO]DLOG If this option is enabled, all errors, warnings, and transmissionstatistics will be logged to

Page 49 - 2.9 EXIT Command

36 DC 900-1406EBSCTRAN Programmer’s GuideThe abort is performed at the BSCFTI level so that users writ-ing their own applications can control this opt

Page 50 - 50 DC 900-1406E

2: BSCTRAN Commands and OptionsDC 900-1406E 37To send transparent 2780 records, BSCTRAN prefixes eachrecord with the count. Records are accumulated int

Page 51 - (BSCFTI)

38 DC 900-1406EBSCTRAN Programmer’s GuideCautions:1. The default ICP message buffer size for BSCTRAN is 1024 bytes. When theBSCTRAN program is run, it

Page 52 - 3.1 BSCDFAULT Procedure

2: BSCTRAN Commands and OptionsDC 900-1406E 392.6 DIAL CommandThe DIAL command has the following format:DIAL link# server[_ICP#] [/STRING=s] [/CONFIG=

Page 53

4 DC 900-1406E BSCTRAN Programmer’s Guide 3 File Transfer Interface (BSCFTI) 51 3.1 BSCDFAULT Procedure ... 523.2 BSCDIAL Pro

Page 54

40 DC 900-1406EBSCTRAN Programmer’s Guide/DTIME=h:m:s This option is the timeout specification (default time is 1minute). This is the maximum time that

Page 55 - 3.2 BSCDIAL Procedure

2: BSCTRAN Commands and OptionsDC 900-1406E 412.7 SEND CommandThe SEND command has the following format:SEND filename link# server[_ICP#] [/DTIME=h:m:

Page 56 - Return Codes

42 DC 900-1406EBSCTRAN Programmer’s GuideCautionIf the user needs to ensure that binary data records (sent withoutthe /TRANS option) are not concatena

Page 57 - 3.3 BSCLOG Procedure

2: BSCTRAN Commands and OptionsDC 900-1406E 433. Refer to the BSC Programmer’s Guide for information regarding the relationshipbetween transparent dat

Page 58 - 3.4 BSCRECV Procedure

44 DC 900-1406EBSCTRAN Programmer’s Guide2.8 RECEIVE CommandThe RECEIVE command has the following format:RECEIVE filename link# server[_ICP#] [/DTIME=

Page 59 - BSCTRAN.INC include file

2: BSCTRAN Commands and OptionsDC 900-1406E 45The BSC File Transfer program displays the state changes of the file transfer with thefollowing statement

Page 60

46 DC 900-1406EBSCTRAN Programmer’s Guide/FIXED This option specifies that the file is opened with fixed-lengthrecord format, where the length is determi

Page 61 - 3.5 BSCSAFE Procedure

2: BSCTRAN Commands and OptionsDC 900-1406E 47/ESCAPE If this option is specified, the BSC File Transfer program looksfor a two-character forms-control

Page 62 - 3.6 BSCSEND Procedure

48 DC 900-1406EBSCTRAN Programmer’s Guidea /FIXED takes precedence over /BINARY for record format.b VFC record format = variable with fixed-length cont

Page 63 - Arguments

2: BSCTRAN Commands and OptionsDC 900-1406E 492.9 EXIT CommandThe EXIT command has the following format:EXITThe EXIT command causes the BSC File Trans

Page 64

DC 900-1406E 5 List of Figures Figure 2–1: Example BSCTRAN Commands and Resulting Data Paths... 23Figure 2–2: Example of the HELP Command ...

Page 65 - 3.7 BSCSET Procedure

50 DC 900-1406EBSCTRAN Programmer’s Guide

Page 66

DC 900-1406E 51Chapter3File Transfer Interface (BSCFTI)NoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP. Fo

Page 67 - 3.8 BSCSHOW Procedure

52 DC 900-1406EBSCTRAN Programmer’s Guide3.1 BSCDFAULT ProcedureCalling SequenceBSCDFAULT (fname, fixed, binary, fortran, escape, recl, bufsize, pri

Page 68

3: File Transfer Interface (BSCFTI)DC 900-1406E 53record separator characters, but by recl length only. A non-zero valueis treated as true.fortran Thi

Page 69

54 DC 900-1406EBSCTRAN Programmer’s GuideOPER1 through OPER12). Log messages will be output to the opera-tor console. A zero value will disable operat

Page 70 - 3.9 Example Programs

3: File Transfer Interface (BSCFTI)DC 900-1406E 553.2 BSCDIAL Procedure Calling SequenceReturnCode = BSCDIAL (lnum, server, dial, config, dtime, re

Page 71 - DC 900-1406E 71

56 DC 900-1406EBSCTRAN Programmer’s Guideserver This is a pointer to a descriptor. It is a character string containing theserver name. An ICP board nu

Page 72 - 72 DC 900-1406E

3: File Transfer Interface (BSCFTI)DC 900-1406E 573.3 BSCLOG ProcedureCalling SequenceBSCLOG (lnum, display, message)Procedures CalledNoneFunctions1.

Page 73 - (BSCRTI)

58 DC 900-1406EBSCTRAN Programmer’s Guide3.4 BSCRECV ProcedureCalling SequenceReturnCode = BSCRECV (fname, lnum, server, dtime, fixed, recl, binary

Page 74 - 4.1 BSCASL Procedure

3: File Transfer Interface (BSCFTI)DC 900-1406E 59lnum This is a pointer to an integer. It is a longword containing the linknumber.server This is a po

Page 75

6 DC 900-1406E BSCTRAN Programmer’s Guide

Page 76 - 4.2 BSCDAS Procedure

60 DC 900-1406EBSCTRAN Programmer’s GuideReturn Codes See Table 5–2 on page 95 for full descriptions of the error return codes.Success RCOKFailure RCI

Page 77 - 4.3 BSCMODEM Procedure

3: File Transfer Interface (BSCFTI)DC 900-1406E 613.5 BSCSAFE ProcedureCalling SequenceReturnCode = BSCSAFE (lnum, code)Procedures CalledBSCRESET and

Page 78

62 DC 900-1406EBSCTRAN Programmer’s Guide3.6 BSCSEND ProcedureCalling SequenceReturnCode = BSCSEND (fname, lnum, server, dtime, trans, binary, card

Page 79 - 4.4 BSCREAD Procedure

3: File Transfer Interface (BSCFTI)DC 900-1406E 637. Closes the file.8. Logs the transmission statistics.Argumentsfname This is a pointer to a descript

Page 80

64 DC 900-1406EBSCTRAN Programmer’s Guidenoteof This is a pointer to an integer. It is a longword containing the noteofindicator. If the flag is true,

Page 81

3: File Transfer Interface (BSCFTI)DC 900-1406E 653.7 BSCSET ProcedureCalling SequenceReturnCode = BSCSET (lnum, server, lconf, start)Procedures Calle

Page 82

66 DC 900-1406EBSCTRAN Programmer’s Guidethat follows. For link configuration, the data block consists of a vari-able number of two-word configuration p

Page 83 - DC 900-1406E 83

3: File Transfer Interface (BSCFTI)DC 900-1406E 673.8 BSCSHOW ProcedureCalling SequenceReturnCode = BSCSHOW (lnum, server, lconfig, clear_stats)Proced

Page 84 - 4.5 BSCRESET Procedure

68 DC 900-1406EBSCTRAN Programmer’s Guidelconfig This is a pointer to a data structure to receive link configuration/sta-tus. The data structure is defin

Page 85 - 4.6 BSCTRACE Procedure

3: File Transfer Interface (BSCFTI)DC 900-1406E 69Return Codes See Table 5–2 on page 95 for full descriptions of the error return codes.Success RCOKFa

Page 86

DC 900-1406E 7 List of Tables Table 2–1: SHOW Command Output ... 28Table 2–2: RECEIVE File Open Options...

Page 87 - 4.7 BSCWRIT Procedure

70 DC 900-1406EBSCTRAN Programmer’s Guide3.9 Example ProgramsThe following BASIC example program calls BSCSEND:10 %TITLE ‘SEND’20 external long FUNCTI

Page 88

3: File Transfer Interface (BSCFTI)DC 900-1406E 71The following FORTRAN example program calls BSCRECV (the SYS$ASCTIM callapplies to VMS only.):progra

Page 89

72 DC 900-1406EBSCTRAN Programmer’s Guide!------------------------------------------------------------------! START OF CODE!-------------------------

Page 90 - 90 DC 900-1406E

DC 900-1406E 73Chapter4Record Transfer Interface (BSCRTI)NoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP.

Page 91 - 4.8 ICP Read Block

74 DC 900-1406EBSCTRAN Programmer’s Guide4.1 BSCASL ProcedureThis procedure must be executed before records can be read from or written to the ICP.It

Page 92 - 92 DC 900-1406E

4: Record Transfer Interface (BSCRTI)DC 900-1406E 75name with an underscore character; otherwise, the ICP board num-ber is assumed to be 0. The maximu

Page 93 - Error Handling

76 DC 900-1406EBSCTRAN Programmer’s Guide4.2 BSCDAS ProcedureThis procedure should be executed before calling BSCASL to change the link number,ICP num

Page 94 - 94 DC 900-1406E

4: Record Transfer Interface (BSCRTI)DC 900-1406E 774.3 BSCMODEM ProcedureThis procedure can be called only after the ICP has been assigned (see the B

Page 95 - DC 900-1406E 95

78 DC 900-1406EBSCTRAN Programmer’s Guidedtime This is a pointer to a descriptor. It is a character string containing thetimeout value in the followin

Page 96 - 96 DC 900-1406E

4: Record Transfer Interface (BSCRTI)DC 900-1406E 794.4 BSCREAD ProcedureThis procedure can be called only after the server, ICP, and link number have

Page 97 - 5.2 BSC ICP Errors

8 DC 900-1406E BSCTRAN Programmer’s Guide

Page 98 - 98 DC 900-1406E

80 DC 900-1406EBSCTRAN Programmer’s GuideArgumentsrdblock This is a pointer to a data structure of type TRANBUF. It receives thedata block from the IC

Page 99 - RECEIVE command

4: Record Transfer Interface (BSCRTI)DC 900-1406E 81are not deblocked using record separator characters, but by the lengthof the ICP read block or rec

Page 100 - BSCTRAN Programmer’s Guide

82 DC 900-1406EBSCTRAN Programmer’s GuideCautionThe RCUNR return code from BSCREAD is treated as a non-fatalerror. User applications that call this pr

Page 101 - Cautions

4: Record Transfer Interface (BSCRTI)DC 900-1406E 83 /* Write the record in rd_recbuf to the receive file. */ } while (!lastrec); /* las

Page 102

84 DC 900-1406EBSCTRAN Programmer’s Guide4.5 BSCRESET ProcedureThis procedure is called when any error occurs that prevents the file transfer operation

Page 103 - Example BSCTRAN Usage

4: Record Transfer Interface (BSCRTI)DC 900-1406E 854.6 BSCTRACE ProcedureThis procedure can be called only after the ICP has been assigned (see the B

Page 104 - 104 DC 900-1406E

86 DC 900-1406EBSCTRAN Programmer’s Guidedtime This is a pointer to a descriptor. It is a character string containing thetimeout value in the followin

Page 105 - DC 900-1406E 105

4: Record Transfer Interface (BSCRTI)DC 900-1406E 874.7 BSCWRIT ProcedureThis procedure can be called only after the ICP has been assigned (see the BS

Page 106 - 106 DC 900-1406E

88 DC 900-1406EBSCTRAN Programmer’s GuideArgumentsrdblock This is a pointer to a data structure of type TRANBUF. It receives thedata acknowledgment bl

Page 107

4: Record Transfer Interface (BSCRTI)DC 900-1406E 89dtime This is a pointer to a descriptor. It is a character string containing thetimeout value in t

Page 108 - 108 DC 900-1406E

DC 900-1406E 9 Preface Purpose of Document This document describes the operation and programming interface required to useSimpact’s BSCTRAN product r

Page 109

90 DC 900-1406EBSCTRAN Programmer’s Guide/* Use common rdblock for BSCWRIT and BSCREAD */TRANBUF rdblock; /* rdblock for

Page 110 - 110 DC 900-1406E

4: Record Transfer Interface (BSCRTI)DC 900-1406E 914.8 ICP Read BlockThe ICP Read Block is a data structure used by the BSC File Transfer program to

Page 111 - DC 900-1406E 111

92 DC 900-1406EBSCTRAN Programmer’s Guide

Page 112 - 112 DC 900-1406E

DC 900-1406E 93Chapter5Error HandlingThe BSC File Transfer program handles the following three categories of errors:• Errors returned by the various l

Page 113 - DC 900-1406E 113

94 DC 900-1406EBSCTRAN Programmer’s GuideTable 5–1: Warnings Output by BSC File Transfer ProgramWarning Message Specified AreaLink is stopped Link numb

Page 114 - 114 DC 900-1406E

5: Error HandlingDC 900-1406E 95 Table 5–2: Error Return Codes Used by BSC File Transfer Program (defined in the BSCTRAN.INC include file)MnemonicValue

Page 115 - DC 900-1406E 115

96 DC 900-1406EBSCTRAN Programmer’s Guidea Refer to the SET /START command in Section 2.4 on page 31.b If this error occurs during SEND or RECEIVE and

Page 116 - 116 DC 900-1406E

5: Error HandlingDC 900-1406E 975.2 BSC ICP ErrorsTable 5–3 describes the possible errors returned from the ICP and how each is handledin SEND and REC

Page 117 - Customer Report Form

98 DC 900-1406EBSCTRAN Programmer’s Guidea Depending on current setting of DEFAULT /ABORT option.b Depending on current setting of DEFAULT /DELETE opt

Page 118 - San Diego, CA 92123

5: Error HandlingDC 900-1406E 995.3 Unexpected Responses from the ICPUnexpected responses from the ICP can be in the form of data, status, or control

Commentaires sur ces manuels

Pas de commentaire