BuildRecordSequences

TranPrint - Build Record Sequences - BSFN

Minor Business Rule

Object Name: BD3N912

Parent DLL: CBUSPART

Location: Client/Server

Language: C

Data Structure

DD3N912 - TranPrint - Build Record Seq - Data Structure

/*****************************************************************************
 *    Source File:  bd3n912

 *

 *    Description:  TranPrint - Build Record Sequences - BSFN Source File

 *

 *        History:

 *          Date        Programmer  SAR# - Description

 *          ----------  ----------  -------------------------------------------

 *   Author 5/09/2000   GE6618987 4107972 - Created 

 *

 * Copyright (c) Data Systems International Inc. 2000

 *

 * This unpublished material is proprietary to Data Systems International Inc..

 * All rights reserved.  The methods and techniques described herein are

 * considered trade secrets and/or confidential.  Reproduction or

 * distribution, in whole or in part, is forbidden except by express

 * written permission of Data Systems International Inc.

 ****************************************************************************/

/**************************************************************************

 * Notes:

 *

 * This BSFN can be called directly.  It can also be called indirectly through 

 * the ND3N901.  The ND3N901 will not call this function if cdcLINKActionCode = 1.  

 * 

 *  This BSFN combines strings of Field Names and Data Values to create a 

 * UFD1 field of up to 250 characters.  If a group of fields can be repesented 

 * with one record, then it will have a TNID value of "0" (zero).  If multiple 

 * records are required then they will be numbered as "001", "002",... "L".  

 * The last record will get an TNID value of "L" to indicate that this is the 

 * Last record for this group of records.  

 *

 *cdcLINKActionCode = 0 (Default)

 *This will combine the Fields and Values into as many records as

 *it will take to keep the UFD1 size under 250 characters.  The BSFN

 *will handle creating the sequence numbers.  The default 

 *Starting Sequence Number will be "0". 

 *

 *cdcLINKActionCode = 1

 *This will combine the Fields and Values UP TO 250 characters.  

 *One record is written using the Sequnce Number provided.  

 *User provides ALL validation before BSFN is called.  

 *

 *cdcLINKActionCode = 2

 *Does NOT send a "L" record.  If you have too many Fields and Values 

 *to fit in one call to this BSFN, Use multiple calls with an 

 *cdcLINKActionCode = 2 on all but the last call.  The next Starting 

 *Sequence Number will be returned for use in the next call.  

 *This will combine the Fields and Values into as many records as

 *it will take to keep the UFD1 size under 250 characters.  The BSFN

 *will handle creating the sequence numbers.  The default 

 *Starting Sequence Number will be "0". 

 *

 **************************************************************************/


Parameter NameData ItemData TypeReq/OptI/O/Both
cdcLINKActionCode_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cActionCode_ACTIONACTIONcharOPTNONE

A code that indicates the activity you want to perform. Valid codes are:    A Add new record    C Change existing record    D Delete existing 
record    I Inquire on existing record    .       End of program or function    space Clear the form  If you enter a code that is not active, the system 
highlights the code and no action occurs. NOTE: Depending on how your company has set up action code security, you might not be authorized 
to use all action codes.

jdDateUpdated_UPMJUPMJJDEDATEOPTNONE

The date that specifies the last update to the file record.

mnTimeUpdated_TDAYTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

szUserId_USERUSERcharOPTNONE

The code that identifies a user profile.

szWorkStationId_JOBNJOBNcharOPTNONE

The code that identifies the work station ID that executed a particular job.

mnJobNumber_JOBSJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

szProgramId_PIDPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szVersion_VERSVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cSuppressErrMsg_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMessageKey_EKEYEKEYcharOPTNONE

A 4-digit number assigned to all errors. When this number is used in the error message facility (F7 from any form), you may enter a specific 
error message number and press F13 to automatically exit to the revisions program referenced within the text of the error message. This 
function applies only to error messages that refer to items such as user defined codes.

nDebugLevel_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

szDateTimeFromDevice_DVDTDVDTcharOPTNONE

szFormatName_FMATFMATcharOPTNONE

The RPG format name the system uses in the logical file or open query statement.

mnPrinterNumber_PFN0PFN0MATH_NUMERICOPTNONE

Printer- future numeric 0

szInputData_UFD1UFD1charOPTNONE

mnBlockCount_BLCTBLCTMATH_NUMERICOPTNONE

Block Count

szSequence_TNIDTNIDcharOPTNONE

szDeviceName_DVNMDVNMcharOPTNONE

szCostCenterAlt_MMCUMMCUcharOPTNONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

szStartingSeq_TNIDTNIDcharOPTNONE

szEndingSeq_TNIDTNIDcharOPTNONE

mnRandomNumber_FSTIFSTIMATH_NUMERICOPTNONE

szFieldName01GS2AcharOPTNONE

szDataValue01GS5AcharOPTNONE

szFieldName02GS2AcharOPTNONE

szDataValue02GS5AcharOPTNONE

szFieldName03GS2AcharOPTNONE

szDataValue03GS5AcharOPTNONE

szFieldName04GS2AcharOPTNONE

szDataValue04GS5AcharOPTNONE

szFieldName05GS2AcharOPTNONE

szDataValue05GS5AcharOPTNONE

szFieldName06GS2AcharOPTNONE

szDataValue06GS5AcharOPTNONE

szFieldName07GS2AcharOPTNONE

szDataValue07GS5AcharOPTNONE

szFieldName08GS2AcharOPTNONE

szDataValue08GS5AcharOPTNONE

szFieldName09GS2AcharOPTNONE

szDataValue09GS5AcharOPTNONE

szFieldName10GS2AcharOPTNONE

szDataValue10GS5AcharOPTNONE

szFieldName11GS2AcharOPTNONE

szDataValue11GS5AcharOPTNONE

szFieldName12GS2AcharOPTNONE

szDataValue12GS5AcharOPTNONE

szFieldName13GS2AcharOPTNONE

szDataValue13GS5AcharOPTNONE

szFieldName14GS2AcharOPTNONE

szDataValue14GS5AcharOPTNONE

szFieldName15GS2AcharOPTNONE

szDataValue15GS5AcharOPTNONE

szFieldName16GS2AcharOPTNONE

szDataValue16GS5AcharOPTNONE

szFieldName17GS2AcharOPTNONE

szDataValue17GS5AcharOPTNONE

szFieldName18GS2AcharOPTNONE

szDataValue18GS5AcharOPTNONE

szFieldName19GS2AcharOPTNONE

szDataValue19GS5AcharOPTNONE

szFieldName20GS2AcharOPTNONE

szDataValue20GS5AcharOPTNONE

szFieldName21GS2AcharOPTNONE

szDataValue21GS5AcharOPTNONE

szFieldName22GS2AcharOPTNONE

szDataValue22GS5AcharOPTNONE

szFieldName23GS2AcharOPTNONE

szDataValue23GS5AcharOPTNONE

szFieldName24GS2AcharOPTNONE

szDataValue24GS5AcharOPTNONE

szFieldName25GS2AcharOPTNONE

szDataValue25GS5AcharOPTNONE

Related Functions

None

Related Tables

None