Hi, I have created a BSFN for that which works fine on AS400 as well as on the WIN32 Client.
Feel free to use the attached source.
Let me know if you have any questions.
---------------------
OneWorld XE,8.9,8.10,8.12 AS400V5R4, Citrix, XPI 4.6/8.92/8.94/8.96 (webMethods 6.1/7.2)
WAS 5.0.2
web:
http://www.e1itconsult.com
C-File: Start ---------------------------------------------
#include <jde.h>
#define b5998020_c
/*****************************************************************************
* Source File: b5998020
*
* Description: E1IT Get Plattform CRLF Source File
*
* History:
* Date Programmer SAR# - Description
* ---------- ---------- -------------------------------------------
* Author 16.07.04 E1IT Unknown - Created
*
* Copyright (c) J.D. Edwards World Source Company, 1996
*
* This unpublished material is proprietary to J.D. Edwards World Source Company.
* 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 J.D. Edwards World Source Company.
****************************************************************************/
/**************************************************************************
* Notes:
*
**************************************************************************/
#include <b5998020.h>
/**************************************************************************
* Business Function: E1ITGetPlattformCRLF
*
* Description: E1IT Get Plattform CRLF
*
* Parameters:
* LPBHVRCOM lpBhvrCom Business Function Communications
* LPVOID lpVoid Void Parameter - DO NOT USE!
* LPDSD5998 lpDS Parameter Data Structure Pointer
*
*************************************************************************/
JDEBFRTN (ID) JDEBFWINAPI E1ITGetPlattformCRLF (LPBHVRCOM lpBhvrCom, LPVOID lpVoid, LPDSD5998020A lpDS)
{
/************************************************************************
* Variable declarations
************************************************************************/
/************************************************************************
* Declare structures
************************************************************************/
/************************************************************************
* Declare pointers
************************************************************************/
/************************************************************************
* Check for NULL pointers
************************************************************************/
if ((lpBhvrCom == (LPBHVRCOM) NULL) ||
(lpVoid == (LPVOID) NULL) ||
(lpDS == (LPDSD5998020A) NULL))
{
jdeErrorSet (lpBhvrCom, lpVoid, (ID) 0, _J("4363"), (LPVOID) NULL);
return ER_ERROR;
}
/************************************************************************
* Set pointers
************************************************************************/
/************************************************************************
* Main Processing
************************************************************************/
/* Load cCRHex and cLFHex with Hex Characters */
/* AS400 part */
#ifdef JDENV_AS400
lpDS->cCRHex = _J('\x0D'); /* 0x0D */
lpDS->cLFHex = _J('\x25'); /* 0x25 */
lpDS->cOSType = _J('A'); /* A - AS400 */
#endif
/* Non AS400 part */
#ifndef JDENV_AS400
/*lpDS->cCRHex = '\r'; /* 0x0D */
/*lpDS->cLFHex = '\n'; /* 0x0A */
lpDS->cCRHex = _J('\x0D'); /* 0x0D */
lpDS->cLFHex = _J('\x0A'); /* 0x0A */
lpDS->cOSType = _J('W'); /* W -Win */
#endif
/************************************************************************
* Function Clean Up
************************************************************************/
return (ER_SUCCESS);
}
/* Internal function comment block */
/**************************************************************************
* Function: Ixxxxxxx_a // Replace "xxxxxxx" with source file number
* // and "a" with the function name
* Notes:
*
* Returns:
*
* Parameters:
**************************************************************************/
C-File: END ---------------------------------------------
H-File: Start ---------------------------------------------
/*****************************************************************************
* Header File: B5998020.h
*
* Description: E1IT Get Plattform CRLF Header File
*
* History:
* Date Programmer SAR# - Description
* ---------- ---------- -------------------------------------------
* Author 16.07.04 E1IT Unknown - Created
*
*
* Copyright (c) J.D. Edwards World Source Company, 1996
*
* This unpublished material is proprietary to J.D. Edwards World Source
* Company. 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 J.D. Edwards World Source Company.
****************************************************************************/
#ifndef __B5998020_H
#define __B5998020_H
/*****************************************************************************
* Table Header Inclusions
****************************************************************************/
/*****************************************************************************
* External Business Function Header Inclusions
****************************************************************************/
/*****************************************************************************
* Global Definitions
****************************************************************************/
/*****************************************************************************
* Structure Definitions
****************************************************************************/
/*****************************************************************************
* DS Template Type Definitions
****************************************************************************/
/*****************************************
* TYPEDEF for Data Structure
* Template Name: E1IT Get Plattform CRLF
* Template ID: D5998020A
* Generated: Fri Jul 16 06:07:17 2004
*
* DO NOT EDIT THE FOLLOWING TYPEDEF
* To make modifications, use the OneWorld Data Structure
* Tool to Generate a revised version, and paste from
* the clipboard.
*
**************************************/
#ifndef DATASTRUCTURE_D5998020A
#define DATASTRUCTURE_D5998020A
typedef struct tagDSD5998020A
{
JCHAR cCRHex;
JCHAR cLFHex;
JCHAR cOSType;
} DSD5998020A, *LPDSD5998020A;
#define IDERRcCRHex_1 1L
#define IDERRcLFHex_2 2L
#define IDERRcOSType_3 3L
#endif
/*****************************************************************************
* Source Preprocessor Definitions
****************************************************************************/
#if defined (JDEBFRTN)
#undef JDEBFRTN
#endif
#if defined (WIN32)
#if defined (WIN32)
#define JDEBFRTN(r) __declspec(dllexport) r
#else
#define JDEBFRTN(r) __declspec(dllimport) r
#endif
#else
#define JDEBFRTN(r) r
#endif
/*****************************************************************************
* Business Function Prototypes
****************************************************************************/
JDEBFRTN (ID) JDEBFWINAPI E1ITGetPlattformCRLF (LPBHVRCOM lpBhvrCom, LPVOID lpVoid, LPDSD5998020A lpDS);
/*****************************************************************************
* Internal Function Prototypes
****************************************************************************/
#endif /* __B5998020_H */
H-File: END ---------------------------------------------