Q
Problem solve Get help with specific problems with your technologies, process and projects.

Web page to COBOL?

I'm trying to execute a COBOL program from (Browser) HTML form using Active Server Pages to get the results back to the Browser. I'm able to get the data from iSeries using Client Access ODBC to the browser but not able to call a COBOL program. Not sure about the Syntax. Could you please give me an example to do this process?

 
Set cn400 = CreateObject("ADODB.Connection")
cn400.Open "Provider=IBMDA400;Data Source=YOURAS400;", "", ""
sCmd = "CALL PGM('PGMNAME')"
TempCommand = Trim(sCmd)
cn400.Execute TempCommand 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.


This was last published in May 2002

Dig Deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close