COBOL Questions


Moving data between 2 iSeries Servers
We have a Production iSeries and a Development iSeries. We want to be able to select data from our Production System and Transfer it to a programmers library on our Development System. When we were on a single system we used SQL/Cobol. We have been successful getting to the database on each system through the [...]

Answer Question   |  March 8, 2010  7:13 PM
AS/400, COBOL, iSeries, iSeries Cobol programming
asked by:
2,480 pts.

can we call DC BATCH program from a BATCH program
Can we call a cobol with IDMS statements DC BATCH program from a cobol with IDMS statements BATCH program . if we can not call then please provide the reason for that .

Answer Question   |  December 13, 2007  3:59 AM
COBOL, DC BATCH, IDMS
asked by:
5 pts.

Calling a stored procedure in COBOL
I’m looking for samples of how to code and compile a call of a stored procedure in a COBOL program? The stored procedure is delivered as part of a software package. No coding examples were provided in the documentation.

Answer Question   |  March 1, 2010  6:27 PM
AS/400, COBOL
asked by:
Tw
65 pts.

need a sleep command in COBOL
need a sleep command in COBOL

Answer Question   |  June 19, 2008  6:51 PM
COBOL, SLEEP, TIMER
asked by:
0 pts.

ILE RPG call to ILE COBOL passing large array
Our RPG program calls the COBOL program with a large linkage made up of an external file record format occurring 999 times. The COBOL program loads 121 of the occurrences with data. The RPG program, however, appears to start processing with the following occurrence 122 even though the COUNT index in the RPG program is [...]

Answer Question   |  November 15, 2007  4:10 PM
Array, Call, COBOL, Parameters, RPG
asked by:
0 pts.

create computations on the fly
We are primarily a COBOL shop. We have some COBOL ILE and some RPG. I have a need to replicate a function on the I-series that is currently done in Excel. This function allows them to create formulas on the fly to arrive at pricing information. I can work through issues with interactive maintenance of [...]

Answer Question   |  December 26, 2009  12:47 PM
Application development, AS/400, CLP, COBOL, Development, Programming Languages, Retail/point-of-sale applications, RPG, RPG ILE, RPGLE, Web development
asked by:
0 pts.

COBOL conversion to Java vs .Net
Our CIO has announced that he wants to eliminate the mainframe by the end of FY 07-08. We are in the strategic planning phase currently and are examining the options. Our current system is z890-2086 running z/OS 1.4, CICS/TS, CA-7 job scheduler, CA Top Secret etc. Our criminal justice system runs on a Datacom/DB database. [...]

Answer Question   |  March 8, 2012  12:14 PM
COBOL, Java, JSP, zSeries
asked by:
10 pts.

Converting S/36 COBOL programs on AS/400 to ILE COBOL
Can anyone give me some tips/information and/or names of third parties with conversion software to automate this process? Thank you…

Answer Question   |  June 30, 2006  5:20 PM
Application development, COBOL
asked by:
0 pts.

Generated code differences in COBOL
Why would cause a difference in generated code for IF FIELDA > 0 GO TO A-EXIT.? FIELDA is defined as PIC 9(8). if compiled in Endevor the generated code is L 5,412(0,9) MVC 720(8,13),4012(5) OI 727(13),X’F0′ CLC 720(8,13),21(12) BC 13,3812(0,11) and it compares to ‘F0F0F0F0F0F0F0F0′ compiled outside of Endevor, we get PACK 720(5,13),4012(8,4) CP 720(5,13),24(1,12) [...]

Answer Question   |  January 4, 2006  8:41 AM
COBOL
asked by:
0 pts.

Working Storage – Reusability
Hello, here is the question… I want to create a sub-module (cobol DB2) that will be called at initialization time by the load driver (either TP ou Batch). That sub-module will load technical information in its working-storage after accessing DB2 tables. That module will be called dynamically throughout processing by other modules that will want [...]

Answer Question   |  December 14, 2005  4:52 AM
390, COBOL, DB2, Mainframe
asked by:
0 pts.

Special characters
I’ve got a situation where the users are entering characters into fields on the screen that I do not want them to enter. In COBOL, I can check these fields for alphabetic and numeric but I am under the impresion that this would not allow certain special characters that I do want to allow. Is [...]

Answer Question   |  December 8, 2005  4:35 PM
CLP, COBOL
asked by:
0 pts.

Need help in sloving some JOB Abends
Hi All, I am new to the mainframe application development environment.Can anyone help me how to solve JCL Abends like say SOC7,SOC4. regards, Aravind

Answer Question   |  October 26, 2005  5:33 AM
390, COBOL, DB2, Development, Mainframe, Programming Languages, REXX, SQL, Update from Search390.com staff, zSeries
asked by:
0 pts.

AS400 COBOL regarding multiple logical files with external keys and same format.
AS/400 COBOL: Trying to read one logical path to process a certain set of transactions and under certain circumstances read another logical path over the same physical file to retrieve supplemental data. Getting stuck on compiler error “LBL1463′(data-item) previously defined in program, use cannot be determined. Default item assumed.” Cannot ascertain what combination of redefines, [...]

Answer Question   |  October 13, 2005  2:38 PM
AS/400, COBOL
asked by:
0 pts.

asked by:
0 pts.

asked by:
0 pts.

Invoking stored procedures returning result set from COBOL/RPG pgm
I am currently trying to invoke an SQL procedure (Language SQL) that returns a result set (open cursor)from within a COBOL or RPG program, all residing on an AS/400. However, I cannot find the command that will associate the result set with any mnemonic that I can issue FETCH/CLOSE commands against. Can anyone shed some [...]

Answer Question   |  August 5, 2005  8:08 AM
COBOL, SQL
asked by:
0 pts.

Retrieval Locks in IDMS-COBOL
Hi, I need some info on how to reduce the number of shared locks placed by my IDMS-COBOL batch program (running in retrieval mode on MVS). I had a look at the compiler options to find out if an option can be set at compiler level for batch programs but could not find any. The [...]

Answer Question   |  July 14, 2005  5:44 AM
COBOL
asked by:
0 pts.

MCH3601 in called program aicapgm
Hi I am facing MCH3601 error i.e. (MCH3601 in called program aicapgm which may be system program since its object doesnot exist)i.e. POINTER NOT SET FOR LOCATION REFERENCE problem. This problem is coming while calling COBOL programs e.g. C from two COBOL programs A and B. When C is called from program A (type COBOL),program [...]

Answer Question   |  December 28, 2009  8:17 AM
COBOL
asked by:
0 pts.

Justify clause in COBOL
A COBOL pgm with a JUST RIGHT clause for an anphanumeric field does not function correctly under Enterprise COBOL. What am I doing wrong?

Answer Question   |  July 9, 2005  9:20 AM
COBOL
asked by:
0 pts.

Calling External Procedure from Java Web based Application
Below given is a procedure to access a CL Program in iSeries from a Java web based program. create procedure libxxx/proc_name LANGUAGE CL FENCED EXTERNAL NAME ‘libxxx/clprogram’ PARAMETER STYLE GENERAL The external CL program has other calls to Cobol programs in the same library.The procedure is in a different library.The cobol calls does not have [...]

Answer Question   |  October 26, 2009  5:09 PM
COBOL, i5, IBM, IBM WebSphere, iSeries, J2EE, Java, OS/400, SQL, UDB for iSeries/i5
asked by:
0 pts.