0% found this document useful (0 votes)
73 views2 pages

How To Use Business Function B34A1030 Execute External Program in EnterpriseOne

Document 636244.1 provides a guide on using the business function B34A1030, which executes external programs in JD Edwards EnterpriseOne. It includes specifications, troubleshooting tips for errors, and examples of command usage on both Windows and AS/400 platforms. The document also outlines best practices for coding and executing commands, as well as handling library lists and error messages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views2 pages

How To Use Business Function B34A1030 Execute External Program in EnterpriseOne

Document 636244.1 provides a guide on using the business function B34A1030, which executes external programs in JD Edwards EnterpriseOne. It includes specifications, troubleshooting tips for errors, and examples of command usage on both Windows and AS/400 platforms. The document also outlines best practices for coding and executing commands, as well as handling library lists and error messages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Document 636244.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afr...

PowerView is Off Manoch (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates Search Knowledge Base Advanced

E1: BSFN: How to use business function B34A1030 Execute External Program in EnterpriseOne (Doc ID 636244.1) To Bottom

Modified: 07-Aug-2013 Type: HOWTO

In this Document

Goal
Solution
Description of B34A1030
Specifications of B34A1030
Troubleshoot Error "3143 File can not be accessed" returned by B34A1030
Sample Command on Windows platform
Using B34A1030 on the AS/400 platform
What can be the Command Line?
How to code B34A1030 ?
Library List used by B34A1030
Calling B34A1030 in an Interactive Application or UBE run Locally
What to verify when BSFN returns error message 3143 File can not be accessed?
Troubleshoot the Command Line Execution on the AS/400

APPLIES TO:

JD Edwards EnterpriseOne Tools - Version 8.93 and later


Information in this document applies to any platform.
***Checked for relevance on Dec-27-2011***

GOAL

How to use business function B34A1030 Execute External Program in EnterpriseOne ?

SOLUTION

Description of B34A1030

The business function executes a command/program using the native command interpreter for the platform server where the business function is mapped to run
through the EnterpriseOne Object Configuration Manager (OCM).

Specifications of B34A1030

The input command line must be valid for the platform and must be a Batch mode command (not Interactive mode command)
The business function runs the command line synchronously - it does Not return until the command line is done executing
Security and permissions to execute certain commands may be platform-dependent as well
The business function can only detect if the command executed, but not if the command completed successfully
If the program executed by the business function is located on a cluster drive, try installing the program in the root drive of each server
In a Web client environment, the business function works as long as it is mapped to run on the server via OCM

Troubleshoot Error "3143 File can not be accessed" returned by B34A1030

When the business function returns error message 3143, it means that it was unable to launch the command on the platform server where the business function is
running. Verify the syntax of the command if the command is hard-coded. If the command is built using Event Rule coding, turn Logging on to verify the syntax of
the command in the dumping of the BSFN data structure parameters in the jdedebug log. Test the command on the platform server where the business function is
running.

Sample Command on Windows platform

Create a text file test.txt in ddp\system\bin32 then pass to B34A1030 'attrib +R test.txt' without the quote. The test.txt should turn to Read-Only.

Back to top

Using B34A1030 on the AS/400 platform

What can be the Command Line?

A command that can only be executed in Batch mode. For example, command STRPCCMD is an Interactive command and therefore will not work.

A CL program. The recommendation is to add/remove the necessary libraries for the proper execution of the CL.

Execute the command line on the AS/400 to ensure that it works.

1 จาก 2 10/11/2556 23:35


Document 636244.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afr...

Expert Knowledge of the AS/400 is a pre-requisite.

How to code B34A1030 ?

Example passing in command to call the CL program :

Execute External Program


UNDEFINED -> cSuppressErrorMessage (1: Yes, 0:No)
VA ErrorCode <- cErrorCode (DD-Alias ERRC)
VA ErrorMessage <- szErrorMessageId (DD-Alias DTAI)
SBMJOB CMD( CALL PGM(LIBRARY/PGM) PARM("PM01" "PM02") ) JOB(B34A1030) LOG(4 00 *SECLVL) LOGCLPGM(*YES) -> szCommandLine
(DD-Alias NFLF)

Recommendation is to use the SBMJOB command to launch the CL or Command so that it executes in a jobstream separate from the parent job unless there is a
need to call the CL/Command in-line with the parent job. If using a CL/Command in-line, it cannot be a command that invokes SQL CLI, for example command
CPYTOIMPF, otherwise, the CL/Command fails with error SQL0842 in the AS/400 joblog because the EnterpriseOne database driver code is designed to get a
database connection in Local mode and there can only be 1 Local database connection in an AS400 jobstream.

The Command line can be hard coded by keying in the AS/400 command as a Literal, for example,

DSPFD FILE(LIB/F5501) TYPE(*MBRLIST) OUTPUT(*OUTFILE) OUTFILE(LIB/FFD5501)

The Command line can be built into an Event Rule (ER) variable using ER Expression Mgr Text function Concat, for example,

VA CL_CMD = concat("CALL PGM(",concat([VA Library],concat("/",concat([VA CL_Pgm],concat(") PARM(",concat([VA Parm1],concat("


",concat([VA Parm2],concat(" ",concat([VA Parm3],concat(" ",concat([VA Parm4],")"))))))))))))

Library List used by B34A1030

When B34A1030 submits the AS400 command, it inherits the library list used by EnterpriseOne. If specific non-EnterpriseOne libraries are required by the AS400
command, embed the AS400 command in a CL program together with command ADDLIBLE to add the required libraries.

Another option is to hardcode the list of libraries in the SBMJOB command parameter INLLIBL (Initial Library List).

Calling B34A1030 in an Interactive Application or UBE run Locally

The business function must be mapped to the AS/400 in OCM of the System Data Source.

What to verify when BSFN returns error message 3143 File can not be accessed?

This error means that the BSFN was unable to launch the command on the AS/00. Verify the syntax of the command on the AS/400 if the command is hardcoded.
If the command is built using ER, turn Logging on to verify the syntax of the command in the dumping of the BSFN data structure parameters in the jdedebug.log

Troubleshoot the Command Line Execution on the AS/400

Test the bsfn in a UBE version that is submitted to the AS/400. (Note: AS/400 Administrator function is required).

On the EnterpriseOne Client-Batch Versions, select the UBE to submit to the AS/400. When Printer Selection screen displays, on the AS/400, first hold the job
queue that the UBE is submitted to, then on the EnterpriseOne Client, click OK to submit the UBE.

On the AS/400,

In the job queue, find the job and note the job number in order to retrieve the corresponding joblog from the outq QEZJOBLOG
Change the job attributes : LOG(4 00 *SECLVL)
Release the job queue
Review the OUTQ QEZJOBLOG after the UBE job completes to find joblog, press F11 to display the Number column and search for the job number noted
earlier.

Back to top

Related
Products
JD Edwards EnterpriseOne > Tools and Technology > EnterpriseOne Tools > JD Edwards EnterpriseOne Tools > Tools - Business Function
JD Edwards EnterpriseOne > Tools and Technology > EnterpriseOne Tools > JD Edwards EnterpriseOne Tools > Tools - Business Function

Keywords
AS400; B34A1030; FILE CAN NOT BE ACCESSED.; JDE1BSFNHOWTO; JOBLOG; NATIVE

Back to Top
Copyright (c) 2013, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

2 จาก 2 10/11/2556 23:35

You might also like