Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.2 Error Detail Codes of BSORT Function

Error detail codes that may be notified when you call PowerBSORT from C language program are set in errdetail of BSRTREC structure. The following section explains the detailed codes and its meaning set in errdetail.

Error detail Code

Definition value of error detail code

Meaning

1

BSERR_VL

Error in bsrtopen or bsrtclse function's first argument.

2

BSERR_LOAD

Error when loading PowerBSORT.

3

BSERR_DELETE

Error in an attempt to delete PowerBSORT from virtual storage.

4

BSERR_LMFAIL

License checkout failed.

5

BSERR_PRODUCT

PowerBSORT is not correctly installed.

50

BSERR_MEMSIZE

The specified memory size by bsrtopen function is too small.

51

BSERR_PASSMEM

Memory address range specified by bsrtopen function is not cleared by bsrtclse function.

52

BSERR_ALCMEM

Not enough PowerBSORT virtual storage working area is secured.

53

BSERR_MEMZERO

Bsrtopen function is not specifying the amount of virtual storage while specifying the address.

54

BSERR_MANYFILE

Too many input file paths specified by bsrtopen function.

55

BSERR_INFILETAB

Input file name table specified by bsrtopen function is invalid.

56

BSERR_BSRTPRIM

Error in BSRTPRIM information specified by bsrtopen function.

  • While bsrtopen function is specifying merge option, the number of files and strings are not specified.

  • The number of strings entered does not match the one specified by BSRTFILE.

  • Record formats specified by input file and BSRTPRIM do not match.

  • A regular file has been specified as the input file, but the regular file size is not a multiple of the record length.

57

BSERR_EXCLUSIVE

Functions mutually exclusive are specified.

  • Suppression option and record summation option

  • Sort option, merge option and copy option

59

BSERR_KEYTAB

Error in key field.

  • Key field is outside the range of record.

  • Unexpected data format of key field.

  • Key length is not supported by data format.

  • Error in specifying key operation.

60

BSERR_SUMTAB

Error in summation field

  • The number of summation field is not specified.

  • Summation field is outside the range of record.

  • Unexpected data format of summation field.

  • Summation length is not supported by data format.

61

BSERR_DUPKEY

Key and summation field or the two summation fields are identical.

62

BSERR_UNSUPPORT

Unsupported option specified.

63

BSERR_SELTAB

Error in the selection field.

64

BSERR_RECONTAB

Error in the reconstruction field.

65

BSERR_FILESYS

The file system specified is not valid.

66

BSERR_SELSHRTREC

The selection field specified is not valid.

  • The record entered is shorter than the selection field.

  • The text record entered does not include selection field.

67

BSERR_RCONSHRTREC

The reconstruction field specified is not valid.

  • The record entered is shorter than the reconstruction field.

  • The text record entered does not include reconstruction field.

68

BSERR_OUTFILETAB

Error in output file table.

69

BSERR_BSRTOPT

BSRTOPT structure specified by bsrtopen function is incorrect.

100

BSERR_NOOPEN

Bsrtput, bsrtget or bsrtmrge function is in use before calling bsrtopen function.

101

BSERR_BSRTPUT

Bad usage in bsrtput function.

  • Although records are specified to be loaded from file by bsrtopen function, bsrtput function is in use.

  • Although record has already been passed, bsrtput function still in use.

  • Although merge option is specified, bsrtput function is in use.

102

BSERR_BSRTGET

Bad usage in bsrtget function.

  • Although records are specified to be output to file by bsrtopen function, bsrtget function is in use.

  • Although records are not yet passed completely by bsrtput function, bsrtget function is in use.

  • Although all records are outputted, bsrtget function is in use.

  • Although merge option is specified, bsrtget function is in use.

103

BSERR_BSRTMRGE

Bad usage in bsrtmrge function.

  • Although bsrtopen function is specified to input/output record to file, bsrtmrge function is in use.

  • Although all record is outputted by bsrtmrge function, bsrtmrge function is still in use.

  • Although sort option is specified, bsrtmrge function is in use.

  • String number that is larger than those specified by bsrtopen function is specified by bsrtmrge function.

104

BSERR_BSRTCLSE

Bsrtclse function is called in the middle of output process.

110

BSERR_NORECADR

There are no record address settings.

111

BSERR_RECLEN

Bad record length.

114

BSERR_NOTORDER

Input string for the merge option is not in line.

115

BSERR_OVERFLOW

The summation operation aborted due to overflow.

116

BSERR_SUMSHRTREC

The summation field specified is invalid.

  • Summation process will abort due to entering insufficient variable length record that lacks summation field.

  • Summation process will abort due to entering insufficient text record that lacks summation field.

117

BSERR_NONLF

Line feed is missing at the end of record in text file.

118

BSERR_EXTSHRTREC

Record without key field is entered during inputting text record.

119

BSERR_SUMFIELD

Summation process will abort because invalid code was detected in field during text record summation.

200

BSERR_READFILE

Error occurred while reading record from file.

201

BSERR_WRITEFILE

Error occurred while writing record to file.

202

BSERR_FILEATTR

Bad file attribute. Failed to get file attribute.

203

BSERR_TEMPATTR

Temporary file attribute is invalid. Failed to get file attribute.

204

BSERR_FILEFORMAT

Bad file format.

  • Ordinary and sequential files are specified in mixture.

  • Relative or indexed file are specified.

  • File besides ordinary file is specified for message file.

205

BSERR_SAMEFILE

Duplicate file path name.

  • Same file has been specified for input and output file.

  • Same file has been specified for input and message file.

  • Same file has been specified for output and message file.

206

BSERR_RECFORM

Invalid record format.

  • Fixed-length and variable-length file is specified in a mixture.

  • Input/output record format are different.

207

BSERR_FILERECLEN

Bad record length.

  • When variable-length file is specified, this occurs when record length of file attribute is longer than the length specified by bsrtopen function.

  • When fix-length file is specified, this occurs when length of file attribute and length specified by bsrtopen function differ.

208

BSERR_FILEOPEN

Error occurred when opening file.

209

BSERR_OPENMAX

Too many files are opened within process or system. Or the number of required temporary file exceeds the maximum.

210

BSERR_FILECLOSE

Error occurred when closing file.

211

BSERR_FILEIO

Data corruption due to media or software failure.

212

BSERR_TEMPSPACE

Not enough temporary file space.

213

BSERR_INCORE

Unable to perform in-core sort.

214

BSERR_TEMPCREAT

Unable to create temporary file.

215

BSERR_FILENONE

File specified for input or output does not exist.

216

BSERR_PERMIFILE

No permission to read the specified file for input.

217

BSERR_PERMOFILE

No permission to write to the specified file for output.

218

BSERR_PERMMFILE

No permission to write to the specified message file.

219

BSERR_PERMTFILE

No permission to write or read the specified temporary file.

220

BSERR_MSGSPACE

The message file size is insufficient. Output to the message file will interrupt.

221

BSERR_EXTRECLEN

Record length specified in bsrtopen function is invalid.

222

BSERR_STRFILEREC

When you specify ordinary file for input, record length cannot be omitted.

223

BSERR_CLSEARG

Bad bsrtclse function argument.

224

BSERR_WRITETEMP

Error occurred when writing to temporary file.

225

BSERR_READTEMP

Error occurred when reading temporary file.

226

BSERR_ENVAR

Environment variable setting is wrong.

227

BSERR_SUPFILE

Invalid startup file is specified.

228

BSERR_SUPFILVAR

The mistake is found in startup file.

229

BSERR_PERMSFILE

No permission to read the startup file.

230

BSERR_EUC

Unreasonable code is found in the key field or selection field.

231

BSERR_COBOL85

File system error occurred.

  • No library exists for specified file system.

  • The mistake is found in environment variable LD_LIBRARY_PATH setting.

232

BSERR_SYMLINK

The number of symbolic link found while checking path name exceeds MAXSYMLINKS.

233

BSERR_NAMELONG

File path name is too long.

234

BSERR_NOTDIR

A path prefix component is not a directory.

235

BSERR_ISDIR

The specified path is a directory.

236

BSERR_OUTNOSPC

Running out of space left on the output device.

237

BSERR_FILEBIG

The file size exceeded the limit of process or the maximum file size.

238

BSERR_LIBC

System call or library function error.

250

BSERR_LOGICAL

Error occurred in PowerBSORT operation.

Information

The definition value of the error details code is defined by header file (bsrt.h).