Call WINAPI of COBOL programs

Hi team,

In fact, I'm working on the MF Cobol that makes WINAPI call to run Exe using "WINEXEC. Also create the named pipe and connection to named pipe. Calling Winexec WINAPI and WINAPI CreatenamedpipeA is successful.

But WINAPI CALL "ConnectNamedPipe' to the HELP OF THE HANDLE VALUE of CHANNEL Null for the named pipe connection hangs the program

and stop debugging.

I am not able to debug my program after this call.

Could you please help me for this.

Thanks and greetings

Bejamin shahin

This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
*

Tags: Windows

Similar Questions

  • given sample test of cobol program error

    Hello

    I get the error when I try to run the cobol program on my new server linux production below. (The same program run successfully in my Dev server and test).

    Compiled and linked the cobol program successfully.

    Any help on this appreciated.

    ---------------------------------------

    SUCCESSFUL DATABASE CONNECTION

    Application program failed

    Action type: UPDATE SQL

    In the Pgm Section: SQLRT: SQL-STMT-GET

    Error message: not found stored statement PTPUSTAT_U_PRCRQSE

    Stored Stmt: PTPUSTAT_U_PRCRQSE

    at the pos 00028

    PTPSQLRT - error encountered

    Have no DB connection due to an error in the previous

    Action: SQL UPDATE. Bypassing the current action: SQL SELECT.

    Terminal program.

    -------------------------

    Thank you

    Jean-Marc

    The error message indicates that a stored instruction is missing in PS_SQLSTMT_TBL. This table is initially loaded by the dms of the scripts that run when the database is created (something like epengs.dms), but there is a later step in the installation - update system data - PeopleTools guide which asks you to run the storept.dms script. This would have updated all the statements for the programs that start with PT. If you still have your log files, you can check to see if it worked, or if it has encountered any errors. Whatever it is, you can run the script of dms to solve the problem. If this task is not respected, however, you might want to check that it was the only task that is not respected.

    Kind regards

    Bob

  • How to call ofa page concurrent programs

    Hi all

    I need call concurrent programs of OPS page.user will select the out put the type of lookup and a button more must be RUN it if he select type and run the report.

    can someone suggest me how should I call from ofa simultaneous program page



    Thanks in advance
    Anthony

    Hello

    He comes to work for the same code:

    The controller code:

    Am3 ForumAMImpl = (ForumAMImpl) pageContext.getApplicationModule (webBean);
    RequestId int = (int) am3.submitrequest ();
    String url = "OA.jsp? akRegionCode = FNDCPREQDETAILSTOPREGION & akRegionApplicationId = 0 & REQUESTID ="+ requestid +"& retainAM = Y & addBreadCrumb = Y;

    pageContext.setForwardURL (url,
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);

    Code of the AOS

    public int submitrequest()
    {

    Try
    {
    OADBTransaction tx = (OADBTransaction) getOADBTransaction ();
    java.sql.Connection pConncection = tx.getJdbcConnection ();
    ConcurrentRequest cr = new ConcurrentRequest (pConncection);
    String applnName = "PA." Application that contains the concurrent program
    String cpName = "SAPE_WITHDRAW_NOMINATION"; The simultaneous program name
    String cpDesc = "auto remove appointments with expired Nomination period; simultaneous description of the program

    Pass Arguments using the vector

    Vector cpArgs = new Vector();

    Call the simultaneous program
    requestId int = cr.submitRequest (applnName, cpName, cpDesc, "", false, cpArgs);
    TX.Commit ();
    System.out.println ("Request ID is" + requestId);
    return requestId;
    }
    catch (RequestSubmissionException e)
    {
    OAException oe = new OAException (e.getMessage ());
    oe.setApplicationModule (this);
    throw oe;
    }
    }

    Thank you
    Gerard

    Published by: Gauravv on November 9, 2009 20:16

  • After installation of the operating system 7, Photoshop CS does not work and is called a power PC program. It is an Intel machine and Photoshop has worked well with OS 10.6.

    After installing OS 7 (from 6 OS) on a machine Intel, Photoshop CS and CS2 will not open. I get the message that the Power PC programs are more supported. Why is this happening? Thank you.

    The message is clear (if you know what Power PC means, in other words). All G5 and many ancient used Mac made by Motorola and IBM called PowerPC processors. More recent that all Mac G5s use Intel processors.

    You talk to any OS, Mac, Windows, Linux, etc, the application that you are using must be written and compiled for the CPU and operating system, or it won't work.

    Your copy of Photoshop were written for older Mac using PowerPC applications and does not not on any Mac running Lion 10.7.x or later version. They ran under Snow Leopard 10.6.x because it was the last version of Mac OS X to include Rosetta, which is an emulator PowerPC that allowed these older apps to function, even though the Mac has an Intel processor.

    Your have several options.

    (1) buy a new version of Photoshop that runs natively under Leo.

    2) back to Snow Leopard.

    (3) purchase Server Snow Leopard from Apple ($20) and that run in a virtual machine as the free VirtualBox, VMware or Parallels. You can then run your PPC software in the virtual machine. It means that you were running an OS within an operating system and need a good amount of RAM installed to support the two well enough for your Mac is not slow to a crawl.

  • Im having trouble with something called main control center program 3 on my windows vista gateway labtop!

    well, I bought my labtop in jan 2009 since then until now, it works just great! I recentlly downloaded a program that I bought at my school called ADOBE CREATIVE SUITE 4 now, my computer had problems such as programs crashing, not being able to access the internet, and there's a screen that keeps poping up saying windows microsoft control program main centre 3 a work stoppage, does that mean? but I called microsoft tec, support the referd me towards another 1800 number they could not solve my problem yet once refferd to another number which has been a gateway, support center tec I still once they couldn't stop the last question but not less I had another number that was gateway main call center they stated "in order for me to get help I would have to pay. a price of $59.00 for 30 min and 199.00 for a lifetime warranty when all I need is to know how to get this frekin controll Centre 3 thing of my screen! She said it was a virous but a barley used my computer in addition to me lookin upward central control 3 and it does not say that it is a virous.

    ControlCenter3 might be associated with a Brother printer.

    The simplest solution would be to run the system restore and go back to a time before you download ADOBE CREATIVE SUITE 4.  Copy the file downloaded to external media (flash drive, hard drive, CD, DVD) to save it before you restore the system.

  • my Skype closes and I click on a video call with an error: program of the window is closed due to technical problem

    original title: my Skype close as I click on a video call with error window close program because the problom technique

    I was using Skype program for a long time, but the last two days it stop working when I make a video call, it closes immediately give reason which, due to certain techniques problom window close the program

    Make sure your Windows is fully updated and the latest service pack installed.

    Update of Skype or to download the latest version of their Web site.

    Please update your webcam software and the graphics card driver.

    Check Windows problem and Solution Center and see if there is a new solution it.

  • MAF SOAP error when it is called by several insertion program

    * There is no error when I'm using a SOAP Web service in a form and who invokes it with a button (see code below). A record is inserted into the remote database, whenever the data in the form are true and the button is pressed *.

    "< amx:commandButton actionListener =" #{bindings.persistDepartments.execute} "text = 'AddOne' disabled =" #{! bindings.persistDepartments.enabled} "id ="cb3"/ >

    * However when I use the same method of "persistDepartments" like this *.

    AdfmfJavaUtilities.invokeDataControlMethod ("WLFNewActWS", null, "persistDepartments", namesList, paramsList, typesList);

    * I get the following error *.

    [SEVERE - oracle.adfmf.framework - HttpServiceConnection - journal] Connection error: 500

    [SEVERE - oracle.adfmf.framework - HttpTransport - parseResponse] response [error: 500]: <? xml version =' 1.0 ' encoding = ' UTF - 8'. "> < s: Envelope xmlns:S = ' http://schemas.xmlsoap.org/soap/envelope/ ' > < Body > < ns0:Fault xmlns:ns1 = ' http://www.w3.org/2003/05/soap-envelope " xmlns:ns0 =" http://schemas.xmlsoap.org/soap/envelope/ ' > < ns0:Server faultcode > < / faultcode > < faultstring > object: null is not a type of known entity." " < / faultstring > < / ns0:Fault > < / Body > < / s: Envelope >

    [SEVERE - oracle.adfmf.framework - SoapTransportLayer - invokeSoapRequest] Exception encountered when calling SOAP request

    Endpoint: http:// < ip host >: 7101/WLFNewActWS-WLFNewActWS-context-root/WLFNewActWSPort

    " SOAPAction:" http://wlfnewactws/persistDepartments "

    Exception: HTTP Status Code 500 Internal Server Error: the server encountered an unexpected condition which prevented him from meeting the demand.

    [SEVERE - oracle.adfmf.framework - SynchronizationDC - syncDataFromOfflineToOnline] [Ljava.lang.StackTraceElement;@5b68e1ce

    * If this is the same webservice, the same connection, same everything for entry a-record and citing program for the creation of multiple registration, then what's wrong? BTW, the WS has been created with the option default Document/Wrapped *.

    Here is some detail information.

    I can drag and drop (created from the WLFNewActWS web service) data control on a page to display all of the records (see below) and it works very well, i.e. get record-breaking distance db

            

    Disabled = "#{!}" Bindings.getDepartmentsFindAll.Enabled}"id ="cb3"/ >

    selectedRowKeys = ' #{bindings. " Return.collectionModel.selectedRow}.

    selectionListener = "#{bindings." ShowMoreStrategy Return.collectionModel.makeCurrent}"="auto-scroll ".

    bufferStrategy = 'viewport' id = "lv1" >

    From there, I go to the ADD page and have the following code

    ID = "it2" / >

       

    Disabled = "#{!}" Bindings.persistDepartments.Enabled}"id ="cb3"/ >

    It also works very well which is to create a record in the remote database, but when I tried to create several records from the database device, using the following code

    public class SynchronizationDC {}

    public SynchronizationDC() {}

    Super();

    }

    public void syncDataFromOfflineToOnline() {}

    Trace.log (Utility.FrameworkLogger, Level.INFO, this.getClass (), "syncDataFromOfflineToOnline",

    "Executing syncDataFromOfflineToOnline method");

    try {}

    Connection Conn = DBConnectionFactory.getConnection ();

    conn.setAutoCommit (false);

    Select string = ' SELECT * FROM DEPARTMENTS;

    PreparedStatement pStmt = conn.prepareStatement (select);

    ResultSet rs = pStmt.executeQuery ();

    System.out.println ("Chk #0");

    int rowcount = 0;

    While (RS. Next {}

    RowCount ++;

    System.out.println ("processing line #" + rowcount);

    NamesList list = new ArrayList (1);

    List ParamsList = new ArrayList (1);

    List TypesList = new ArrayList (1);

    Department dept = new Department();

    dept.setDeptId (rs.getInt ("DEPARTMENT_ID"));

    dept.setDeptName (rs.getString ("DEPARTMENT_NAME"));

    dept.setMgrId (rs.getInt ("MANAGER_ID"));

    dept.setLocId (rs.getInt ("LOCATION_ID"));

    System.out.println ("Chk #1");

    GenericType gtDept =

    GenericTypeBeanSerializationHelper.toGenericType ("WLFNewActWS.Types.persistDepartments.arg0", dept);

    System.out.println ("Chk #2");

    namesList.add ("arg0");

    paramsList.add (gtDept);

    typesList.add (GenericType.class);

    AdfmfJavaUtilities.invokeDataControlMethod ("WLFNewActWS", null, "persistDepartments", namesList,

    (paramsList, typesList);

    System.out.println ("Chk #3");

    }

    } catch (SQLException e) {}

    Trace.log (Utility.FrameworkLogger, Level.SEVERE, this.getClass (), "syncDataFromOfflineToOnline",

    e.getMessage ());

    } catch (Exception e) {}

    Trace.log (Utility.FrameworkLogger, Level.SEVERE, this.getClass (), "syncDataFromOfflineToOnline",

    e.getStackTrace ());

    }

    }

    }

    I get the following error


    [SEVERE - oracle.adfmf.framework - HttpServiceConnection - journal] Connection error: 500 [SEVERE - oracle.adfmf.framework - HttpTransport - parseResponse] response [Error: {0}]: {1} [SEVERE - oracle.adfmf.framework - SoapTransportLayer - invokeSoapRequest] encountered exception on the basis of the request SOAP EndPoint:

    All I want to do is read the local db and synchronization with the remote control. What it takes to be elegant, a working model will do for a crucial customer presentation. Are there examples (insertion of records in remote DB) who had worked for you? I can try the same step by step to understand where I am going wrong in 'invokeDataControlMethod' or something escapes me!

    Let me know if you need more information. Thanks again in advance.

  • Error in what concerns while calling the simultaneous OFA program

    Hi all

    I call the concurrent program in the OPS page. So I wrote the code and I imported packages also correctly. But still, am getting error in the following code.

    OADBTransaction tx = (OADBTransaction) getDBTransaction ();
    java.sql.Connection pConncection = tx.getJdbcConnection ();
    ConcurrentRequest cr = new ConcurrentRequest (pConncection);

    String applnName = "CBRSE"; Application that contains the concurrent program
    String cpName = "Open regulations report by user; The simultaneous program name
    String cpDesc = "open case State by user (Seagate); simultaneous description of the program

    Vector cpArgs = new Vector();
    cpArgs.addElement (headerID);

    cr.addLayout(applnName,cpName,"en","US","PDF"); XML Layout Editor.
    requestId = cr.submitRequest (applnName, cpName, cpDesc, null, false, cpArgs);  -JDev appears error in this line.
    TX.Commit ();
    return requestId;

    I imported the package as:

    import com.sun.java.util.collections.Vector;

    Import oracle.apps.fnd.cp.request.ConcurrentRequest;
    Import oracle.apps.fnd.cp.request.RequestSubmissionException;

    Kindly help me in this.

    Thank you and best regards,

    Myvizhi

    Hello

    You pass bad parameter of class vector in the call.

    Correct call should be sub type:

    submitRequest (java.lang.String p1, p2, p3, p4, p5 Boolean java.lang.String, java.lang.String, java.lang.String, java.util.Vector p6)

    cpArgs must be of type java.util.Vector

    Kind regards

    Sandeep M.

  • How can I get the number of callers phone number (call history) of an incoming call on iPhone by program (as TrueCaller App does)

    I try to get the caller ID (telephone number or the call history) at the time of the incoming call. TrueCaller has implemented it and they get the phone number of the caller and the call also history.

    Please help me get there.

    Tips:

    1 CoreTelephony Framework(It gives only calling states)

    2 apples 9.0 update: "Maybe" contacts sync. with the mail application and detects the incoming phone number.

    3 TrueCaller App https://www.truecaller.com/articles/iphone

    https://iTunes.Apple.com/app/truecaller-enhances-your-phonebook/id448142450

    You're talking not here who you think you are. Please read the terms of the user agreement you signed.

  • Insert SMS and call the newspapers by program

    I want to insert the SMS and call programmatically logs.

    I finished the memos using this class 'BlackBerryMemo' &

    BlackBerryMemoList mlist = pim.openPIMList (BlackBerryMemoList) (BlackBerryPIM.MEMO_LIST, PIM. READ_WRITE);

    But how to do the same for the SMS & call logs insert programmatically.

    Can someone please help me to do so.

    There is no access to the sms.
    call logs can be added by using http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/phone/phonelogs/PhoneLogs...

    are you sure you even not looked at the API?

  • PSPRPEXT COBOL program is a failure

    In PeopleSoft, when we run the process PSPRPEXT (LAUNCH THE extraction PROCESS of HISTORY of the RETROACTIVE PAY), it error.

    The following messages appear in our newspaper. Anyone seen this before?

    Since the log generated:

    Application program failed

    In the Section of Pgm: INSERT-PRIOR-RETRO (INSERT)

    With the return Code: 00805

    Error message: ORA-00001: unique constraint (SYSADM.PS_PRIOR_RETRO) violated

    Application program failed

    In the Section of Pgm: LOAD-ERN-ARRAY (PSPRPERY)

    With the return Code: 00805

    Error message: ORA-00001: unique constraint (SYSADM.PS_PRIOR_RETRO) violated

    Application program failed

    In the Section of Pgm: PROCESS-RETRO-PAY (PSPRPCAL)

    With the return Code: 00805

    Error message: ORA-00001: unique constraint (SYSADM.PS_PRIOR_RETRO) violated

    You did say your HCM version, but a MOS score suggests a bug to 9.1 fix

    EPY: 9.1 calculation retro abends to ORA-00001: unique constraint (SYSADM.PS_PRIOR_RETRO) violated (Doc ID 1311234.1)

    Nicolas.

  • How to call a popup by programming in the region of the adf

    Hi all
    I have included a workflow as a region in my home.jspx page.
    My taskflow contains an active, page jsff where save button click I want to show a popup message programmatically
    I mean I want to call showpoup code in my save the action listener.
    I had some code snippet, but it works only incase if popup is called from jspx.

    *****************

    public static invokePopup Sub (String popupId, String line,
    String alignId) {}
    If (popupId! = null) {}
    ExtendedRenderKitService = service
    Service.getRenderKitService (FacesContext.getCurrentInstance (),
    ExtendedRenderKitService.class);

    StringBuffer showPopup = new StringBuffer();
    showPopup.append ("var tips = new Object();");
    Add hints that if specified - see javadoc for js AdfRichPopup for more information on the behavior and valid values
    If (align! = null & & alignId! = null) {}
    showPopup.append ("tips [AdfRichPopup.HINT_ALIGN] =" + line +)
    ";");
    showPopup.append ("advice [AdfRichPopup.HINT_ALIGN_ID] ='" +)
    alignId + "";");
    }
    showPopup.append ("var popupObj = AdfPage.PAGE.findComponent (" "+)")
    popupId +.
    "'); ("If (popupObj) popupObj.show (hints);");
    service.addScript (FacesContext.getCurrentInstance (),
    showPopup.toString ());
    }
    }


    *************************************************8

    Please let me know what changes should I inorder to call popup thid invoke, the jsff method.

    Thank you, regards,
    Arun.

    Hi Arun,

    From Oracle JDeveloper 11.1.1.3, instance of af: popup can be opened by using a Java method on the RichPopup object. There is no more need of javascript and the extendedRenderkitService.

    To launch a popup to a managed bean, you must first get an instance of rich popup, what you can do by making reference to a binding of JSF component.

    To open the context menu call you

    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    popup.show(ph);
    

    Popup indicators can be used to set the alignment, the component that the popup is open next door and the alignment type.

    To close a popup, simply call

    popup.show(hide);
    

    Regards Luke

  • Call the Web browser program compiles in 4.2 and upward but not 4.1

    I wrote a very simple application that when launched, opens the browser and takes you to a predefined binding. The following code compiles and works very well on the 4.2 and upward, but I can't seem to compile in the jde 4.1:

    package vwr;
    
    import net.rim.blackberry.api.browser.Browser;
    import net.rim.blackberry.api.browser.BrowserSession;
    import net.rim.device.api.ui.UiApplication;
    
    public class vwr extends UiApplication {
    public static void main(String[] args){
    vwr instance = new vwr();
    instance.enterEventDispatcher();
    }
    
    public vwr() {
    BrowserSession site = Browser.getDefaultSession();
    site.displayPage("http://www.google.com");
    site.showBrowser();
    System.exit(0);
    }
    }
    

    When I compile 4.1, I get an error related to the site.showBrowser (); command. But as I mentioned, the above code compiles and works fine on OS 4.2 and above. Is there a simple solution for this?

    Thank you in advance.

    Nevermind, I found a solution that works. Here's the code. I hope that someone else will find useful.

    import net.rim.blackberry.api.browser.Browser;
    import net.rim.blackberry.api.browser.BrowserSession;
    import net.rim.device.api.ui.UiApplication;
    
    public class vwr extends UiApplication {
    public static void main(String[] args) {
         vwr instance = new vwr();
         instance.enterEventDispatcher();
      }
    
    public vwr() {
        BrowserSession site = Browser.getDefaultSession();
        site.displayPage("www.google.com");
        System.exit(0);
      }
    }
    
  • program called by a program does not run it go to the taskbar.

    I have a program that calls a Visual basic program. In this example visual basic XP program would open and run. Windows 7 visual basic executes the program, but I have to the task bar and click on it.

    How can I get the Visual basic program is displayed without having to go to the task bar?

    Hello occprinterman,

    Have you tried to use the Task Scheduler?

    Find out information from the Microsoft Web site.
    http://Windows.Microsoft.com/en-us/Windows7/schedule-a-task

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • External call in the program generator

    Hello

    What happens if a call fails in a program?

    Contact moves on the program, or keep it in the same step?

    No, external appeal, it remains in the same step. It continues to move and you will be able to see the failure of the external call statistics in the integration of Reporting.

    the contacts will get removed from the program, but you will be able to understand reports of integration.

    I would like to know if you find a better way to do it.

Maybe you are looking for

  • Why don't backup my iPhone?

    When I plug my iPhone to my Mac, a dialog of iTunes opens and tells me that there are purchases on my iPhone on my mac, and I would like to transfer them? I click Yes and iTunes through the movement of backing up my iPhone. If I do a second upward, I

  • How to turn on a wireless network card on a Satellite 3000 514 without hardware switch?

    I have a 3000-514 Satellite. This laptop has an internal mini PCI slot. Recently, I bought an Intel PRO/Wireless 2200BG wireless mini PCI card. The drivers have been installed correctly. The computer has detected the card and the condition of the equ

  • my mini mac randomly turns off. This will cover under support

    very randomly, my mac mini just would stop dead, Aalst as if the power cable has been removed. No error message or anything What can be the problem and you can fix it

  • Win 7 drivers for hp psc 500

    With the help of HP PSC 500 on another node on my local network home.  Need driver for my laptop Win 7 Home Premium to print correctly on this subject.  IOW, I do not connect the printer directly with a cable. Tried the driver PSC 1500.  Just, it pri

  • Windows 2008 Server R2 Std - issue of Best Practice Analyzer

    Windows 2008 Server R2 Std - question BPA I built a new Windows 2008 R2 Standard Server and configured as a domain controller. When you run the BPA I get the following error, which I can not solve: Question:The default domain controllers policy is no