Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

8.2.4 Error Detail Codes When Using OCX

When using PowerBSORT from OCX, return and error detail code of PowerBSORT will be displayed on ErrorCode property and ErrorDetail property respectively.

Note

You should note that meaning of ErrorDetail property setting changes by the PowerBSORT return code (ErrorCode property) value.

8.2.4.1 Error Detail Code (When ErrorCode Property is 0, -1, or -2)

When ErrorCode property is 0, -1 or -2, settings for ErrorDetail property are as follows:

Code

Meaning

2

Cannot load Dynamic Link Library (DLL) used in PowerBSORT. The cause may be:

  • Although COBOL file is specified, COBOL file system is not installed.

  • Although Btrieve file is specified, Btrieve file system is not installed.

50

Memory size specified is too small.

52

Not enough memory is available for PowerBSORT.

56

There are following errors in the set information:

  • Record format of the actual input file is different from those specified.

  • The size of binary file specified for input file type is not a multiple of record length.

  • Overwrite is specified for merge and copy function.

  • Descending order is specified for copy function.

  • Same key option (suppress, summation) is specified for copy function.

57

Options mutually exclusive are specified.

  • Suppress option, summation option

  • Sort, merge and copy option

59

Key field specified is invalid.

  • Key field specified is outside the range of record.

  • Key field is specifying an unexpected data format.

  • Key length specified in key field is not supported.

60

Summation field specified is invalid.

  • Summation field specified is outside the range of record.

  • Summation field is specifying an unexpected data format.

  • Summation length specified in summation field is not supported.

61

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

62

Unsupported option specified.

63

Error in selection field.

64

Error in reconstruction field.

65

The file system specified is not valid.

66

Record without selection field was entered.

67

Record without reconstruction field was entered.

111

Invalid record length.

114

Input file to be processed for merger are not in line.

115

The summation operation aborted due to overflow.

116

A record without summation field was entered during input of variable length or text record. Summation process will abort and operation will continue.

117

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

118

Key field is missing in the text record entered.

200

Error while reading record from file.

201

Error while writing record to file.

202

Bad file attribute. Failed to get file attribute.

203

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

204

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

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

Invalid record format.

  • Fixed and variable-length files are specified in a mixture.

  • Input and output record formats are different.

207

Invalid record length.

  • When variable-length file is specified, this occurs when record length of file attribute is longer than that specified in MaxRecordLength property.

  • When fix-length file is specified, this occurs when length of file attribute and length specified in MaxRecordLength property differ.

208

Error when opening file.

209

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

210

Error when closing file.

211

Data corruption due to media or software failure.

212

Not enough temporary file space.

213

Unable to perform in core sort (sort within memory).

214

Unable to create temporary file. Folder name or one of the attributes for the specified temporary file is invalid and cannot create temporary file.

215

File specified for input does not exist.

216

No permission to read the specified input file.

217

No permission to write the specified output file.

219

No permission to write or to read the specified temporary file.

222

Record length cannot be omitted.

224

Error when writing to temporary file.

225

Error when reading from temporary file.

226

Environment variable setting is wrong.

230

Unreasonable code is found in the key field.

231

Error in COBOL file system.

  • COBOL run-time library is incorrectly installed.

  • In NetCOBOL, error in the registry setting for section "Product_Directory."

233

File path name is too long.

234

A path prefix component is not a folder.

235

Specified file is a folder.

236

Not enough space on the output device.

237

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

238

System call or library function error.

240

Operation aborted due to insufficient record comparing area.

241

Value not recognized as a numerical value was found during summation.

242

Error is detected in Btrieve file system. Error information set in SubErrorCode property. Refer information such as Btrieve manuals.

243

Error is detected in COBOL indexed file system. NetCOBOL File Error Code is set in SubErrorCode property.

250

Error is detected in PowerBSORT operation.

251

You attempted to create a file that already exists.

252

The specified device name is invalid.

253

Device name for the specified input file is invalid.

254

Device name for the specified output file is invalid.

255

The specified path is invalid.

256

Path name for the specified input file is invalid.

257

Path name for the specified output file is invalid.

258

Unable to find specified device.

259

Unable to find device for the specified input file.

260

Unable to find device for the specified output file.

261

The file name is too long.

262

The input file name is too long.

263

The output file name is too long.

264

Unable to create folder or file.

265

Unable to create folder or file specified as an input file.

266

Unable to create folder or file specified as an output file.

267

The device is not currently connected but it is a remembered connection.

268

Device for the input file is not currently connected but it is a remembered connection.

269

Device for the output file is not currently connected but it is a remembered connection.

270

The folder specified is not valid.

271

The folder specified as an input file is not valid.

272

The folder specified as an output file is not valid.

273

Invalid folder name.

274

Folder name specified as an input file is invalid.

275

Folder name specified as an output file is invalid.

276

The disk device is corrupted and unreadable.

277

There is not enough space on this disk.

278

While accessing the hard disk, a disk operation failed and neither did retries.

279

While accessing the hard disk, a recalibrate operation failed neither did retries.

280

While accessing the hard disk, a disk controller reset was needed, but even that failed.

281

The disk is in use or locked by another process.

282

The disk specified as an input file is in use or locked by another process.

283

The disk specified as an output file is in use or locked by another process.

284

Extended error occurred.

285

Cannot read file or folder because of corruption.

286

The volume for a file has been externally altered such that the opened file is no longer valid.

287

The volume for the specified input file has been externally altered such that the opened file is no longer valid.

288

The volume for the specified output file has been externally altered such that the opened file is no longer valid.

289

Unable to find specified file.

290

Unable to find specified input file.

291

Unable to find specified output file.

292

The file path name or the extension is too long.

293

The input file name or the extension is too long.

294

The output file name or the extension is too long.

295

Disk is full.

296

Unable to find specified drive.

297

Unable to find drive for the specified input file.

298

Unable to find drive for the specified output file.

299

Syntax error occurred in file name, folder name or volume label.

300

Syntax error occurred in input file name, folder name or volume label.

301

Syntax error occurred in output file name, folder name or volume label.

302

Unable to process the request due to I/O device error.

303

Process cannot access the file because a portion of it has been locked by another process.

304

Process cannot access the input file because a portion of it has been locked by another process.

305

Process cannot access the output file because a portion of it has been locked by another process.

306

An attempt was made to move the file pointer before the beginning of the file.

307

Write violation over network occurred.

308

Network access has been denied.

309

Input file network access has been denied.

310

Output file network access has been denied.

311

The network is busy.

312

No more files exist.

313

The network is not present or not started.

314

The network for the specified input file is not present or not started.

315

The network for the specified output file is not present or not started.

316

The specified alias does not exist.

317

Alias for the specified input file does not exist.

318

Alias for the specified output file does not exist.

319

Volume in disk has no label.

320

Volume in input file disk has no label.

321

Volume in output file disk has no label.

322

The network connection for the specified file could not be found.

323

Network connection for the file specified as input file could not be found.

324

Network connection for the file specified as output file could not be found.

325

Cannot access to specified disk.

326

Unable to access disk for specified input file.

327

Unable to access disk for specified output file.

328

Drive is not ready.

329

Drive specified for input file is not ready.

330

Drive specified for output file is not ready.

331

The network request is not supported.

332

Network request for the file specified as input file is not supported.

333

Network request for the file specified as output file is not supported.

334

Cannot open specified device or file.

335

Unable to open device or file specified as input file.

336

Unable to open device or file specified as output file.

337

The specified path is unavailable at this point of time.

338

The path for the specified input file is unavailable at this point of time.

339

The path for the specified output file is unavailable at this point of time.

340

Unable to find the path specified.

341

Unable to find path for the specified input file.

342

Unable to find path for the specified output file.

343

Client does not have sufficient privilege.

344

Client does not have privilege against the file specified in input file.

345

Client does not have privilege against the file specified in output file.

346

The system cannot read the device specified.

347

Remote computer is unavailable.

348

Network request was not accepted.

349

Drive cannot find the sector requested.

350

Drive cannot find the sector requested to read.

351

Drive cannot find the sector requested to write.

352

Drive cannot determine specified disk area or track location.

353

Specified disk area or track location could not be determined while reading.

354

Specified disk area or track location could not be determined while writing.

355

Unable to set file pointer in the specified device or file.

356

Unable to set the file pointer in specified input file device or file.

357

Unable to set the file pointer in specified output file device or file.

358

Remote servers are paused or in start state.

359

Unable to access because the file is in use by another process.

360

Unable to access because the input file is in use by another process.

361

Unable to access because the output file is in use by another process.

362

Unable to open input file.

363

Unable to open output file.

364

The disk media is not recognized. It may not be formatted.

365

The disk media specified as input file is not recognized. It may not be formatted.

366

The disk media specified as output file is not recognized. It may not be formatted.

367

The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupt.

368

Unable to write to specified device.

369

The media is write-protected.

370

Access denied.

371

Input file access denied.

372

Output file access denied.

8.2.4.2 Error Detail Code (When ErrorCode Property is -3)

When ErrorCode property is -3, settings for ErrorDetail property are as follows:

Code

Meaning

1

Failed to secure area for PowerBSORT OLE custom control analysis.

2

Incorrect memory size. (5.3.36 UsableMemorySize property)

3

Unable to create temporary file. Or the file and folder names are specified in a mixture. (5.3.35 TempDir property)

4

Invalid value is specified for operation. (5.3.9 DisposalNumber property)

5

Specify the input file name. (5.3.20 InputFiles property)

6

Invalid value for the input file type is specified. (5.3.21 InputFileType property)

7

Specify the output file name. (5.3.28 OutputFile property)

8

Invalid value for the output file type is specified. (5.3.29 OutputFileType property)

9

Key field is too long. (5.3.23 KeyCmdStr property)

10

Literal value of reconstruction field does not fit the specified length. (5.3.30 RconCmdStr property)

11

Error in NetCOBOL indexed information. (5.3.16 FjcobPrimeKey property, 5.3.13 FjcobAlternateKey property)

12

Error in the combination of specifying the way to handle the same key and the specification for summation. (5.3.17 HandlingSameKey property, 5.3.34 SumCmdStr property)

13

Invalid value is specified for how to handle same key. (5.3.17 HandlingSameKey property)

14

Invalid value in collation order. (5.3.6 CollationOrder property)

15

Invalid value for field mode is specified. (5.3.11 FieldDefinition property)

16

Invalid value is specified for record line delimiter. (5.3.24 LineDelimiter property)

17

Characters specified for field delimiter is too long. (5.3.12 FieldDelimiter property)

18

Error in specifying field delimiter character. (5.3.12 FieldDelimiter property)

19

File can be specified to be overwritten only in sort process.

20

Error in specifying temporary file folder. (5.3.35 TempDir property)

22

Error in specifying the number of records to be skipped. (5.3.22 InputFilesSkiprec property)

23

Error in Btrieve information. (5.3.5 BtrieveInfileOwnerName property, 5.3.4 BtrieveIndexKey property, 5.3.3 BtrieveFileInfo property)

The cause may be either of the following:

  • The type of output file is Btrieve and neither BtrieveIndexKey property nor BtrieveFileInfo property contains information.

    • When the output file is Btrieve file, the specification of the BtrieveIndexKey property and the BtrieveFileInfo property is necessary.

  • Value that cannot be expressed in short int type is specified in key length, preallocation size or others.

    • Unless otherwise mentioned, values specified for Btrieve are in the range (0-65535) that can be expressed by short int type. As an exception, segment number can be in the range (0-4294967295) that can be expressed in long type.

24

Invalid value for InputDataCode. (5.3.19 InputDataCode property)

25

Invalid value for AlternateMode. (5.3.2 AlternateMode property)

26

When text file, you cannot select EBCDIC for InputDataCode. (5.3.19 InputDataCode property, 5.3.21 InputFileType property)

8.2.4.3 Error Detail Code (When ErrorCode Property is -4)

When ErrorCode property is -4, you have encountered a PowerBSORT OCX error.
In the event of this error, notify the ErrorDetail property setting to our technical support staff or your distributors and ask for investigation.