COBOL Questions


Serving web pages from the ILE
In ILE Cobol I can create and XML document using the built in XML generate (and XML parse) statements. How do I go from there to serve this to a browser? I would like to use a web page IDE tool that I hope can output XSL and then merge the XML and XSL to [...]

Answer Question   |  September 28, 2010  1:37 PM
COBOL, HTML, V5R4, XML, XSLT
asked by:
10 pts.

EBCDIC Database File Problem
My company received a file supposedly in EBCDIC format. We copied it to the shared network drive and attempted to FTP it several different times using several different types. The file transferred but when displaying it the records were all variable length and appears to have CR or EOL special characters. What I’m attempting to [...]

Answer Question   |  December 2, 2010  3:28 PM
AS/400 Database File, AS400 Data Definitions;database, COBOL, Database Files, EBCDIC, FTP, iSeries
asked by:
SKF
75 pts.

High values from EBCDIC to ASCII not converting correctly
WHEN CONVERTING AN EBCDIC FILE WITH HIGH-VALUES(X’FF’ CAPITAL ‘Y’ WITH 2 DOTS OVER IT) TO ASCII HIGH-VALUES, MICROFOCUS IS RETURNING X(’9F’, CAPITAL ‘Y’ WITH 2 DOTS OVER IT), NOT X(‘FF’, LOWER CASE ‘y’ WITH 2 DOTS OVER IT) IN THE ASCII FILE, THEY ARE CONVERING/MATCHING TO THE EBCDIC AND ASCII SYBOLS RATHER THAN THE ACTUAL [...]

Answer Question   |  August 20, 2010  12:34 PM
ASCII, COBOL, EBCDIC, Windows XP SP3
asked by:
20 pts.

Activation Group Number in Call Stack
When the activation group number as displayed in the call stack (WRKJOB, option 11) changes during execution, but the activation group name does not change; does that mean a new activation group is being initialized.  The job is a prestart job executing a stored procedure, externally defined as cobol program. The initial cobol program is [...]

Answer Question   |  August 23, 2010  2:21 PM
Activation Groups, AS/400, AS/400 jobs, COBOL, ILE COBOL, iSeries
asked by:
880 pts.

AS400 online cobol program that needs to get data dynamically from a vendor systems SQL server database.
I have a AS400 online cobol program that needs to get data dynamically from a vendor systems SQL server database. Is there a API or some method for doing this. Help.

Answer Question   |  August 9, 2010  1:27 AM
API, AS/400, COBOL, iSeries, SQL Server, V5R4
asked by:
35 pts.

cobol/400 code samples
Hi, I am new to COBOL/400, plz provide me a link to some practical examples on cobol/400

Answer Question   |  July 29, 2010  3:53 PM
COBOL, COBOL/400, iSeries, OS/400, V5R4
asked by:
1,150 pts.

IKJEFT01 – COND CODE 61
I’m trying to run a job which runs the program IKJEFT01 an it abends with return code 61. Does anybody knows what this means?

Answer Question   |  July 27, 2010  6:03 PM
COBOL, COBOL statements, Mainframe, Mainframe programming
asked by:
5 pts.

How do I use DateDiff in cobol using SELECT statement?
how to use DateDiff in cobol using SELECT satement.

Answer Question   |  July 12, 2010  3:59 PM
AS/400, COBOL, DATEDIFF, SELECT statement
asked by:
Ije
35 pts.

adding field on screen DSPF
Hi, i added a new field on the screen, declared the variable just like a similar one present in the screen. now I am changing the COBOL program of the same screen. I used the same variable to move value into it. As test I and to check whether issue is with how i have [...]

Answer Question   |  June 22, 2010  1:59 PM
AS/400, AS/400 - DDS, COBOL, DSPF, Screen Design Aid
asked by:
125 pts.

Getting a decimal data error when making a change in COBOL AS/400
Hi, I am doing a change in COBOL pgm in as400. Requirement is to replace an existing input file with a new one and move its field values to the output file. There is a difference here as old input file had the particular field in numeric and the new input file has it in decimal. [...]

Answer Question   |  September 27, 2010  1:48 PM
AS/400, COBOL, COBOL/400
asked by:
125 pts.

Renames clause in cobol
while using renames clause we are defining dataname-1 thru dataname-n. if i am having same datanames in another group which output can i expect?

Answer Question   |  June 29, 2010  6:49 AM
COBOL, COBOL statements, Programming Languages, RENAME statement
asked by:
5 pts.

Contention when locking an on-line VSAM file using ENQ/DEQ. All users are being locked out of entire file.
We are running IBM’s Check Processing Control System (CPCS) which is written in Cobol & Assembler. CPCS calls Control Machine (CTMC) which is a Conix product also written in Cobol & Assembler.  CPCS captures check data and CTMC posts, balances, etc.  These programs run as tasks in an on-line region where many users can correct [...]

Answer Question   |  July 28, 2010  8:35 PM
COBOL, CPCS, CTMC, Mainframe, VSAM
asked by:
20 pts.

COBOL Application Project Mgt Scoping Questions
I’ve recently stepped into a project management position associated with the ongoing upgrades to an old COBOL financial system used for payroll.  I’m finding it difficult to nail down schedules and resource requirements for mods/enhancements I use to consider fairly simple in a non-COBOL environment.  For example, I have only two priority #1 requirements on [...]

Answer Question   |  April 16, 2010  3:27 PM
CCIS, COBOL
asked by:
15 pts.

Effective Userid on execution Unix and Cobol
I have created one file ‘F’ wih one owner named ‘A’ and i want to give the effective userid settings to one program named ‘p’ written in cobol. even though the other users can’t open the file named ‘A’ above . they can access the file by using the program ‘P’. for that i have [...]

Answer Question   |  March 17, 2010  8:16 AM
COBOL, Unix
asked by:
5 pts.

CL Report priniting
I created a 4 pages report. When I print all the 4 pages prints in 2 papers. Its not prining in 4 pages

Answer Question   |  December 2, 2010  4:40 PM
CL, COBOL, Report format
asked by:
Ije
35 pts.

Dynamic file allocation in a COBOL subroutine
I have successfully coded dynamic file allocation in a COBOL program.  My problem is this: I need to dynamically allocate the file in a central subroutine and then be able to open and close that file from the program that calls the subroutine to allocate the file.  Is this possible and if so, how?

Answer Question   |  July 28, 2010  5:11 PM
COBOL, Dynamic file allocation, Mainframe programming
asked by:
10 pts.

high-values low-values (microfocus COBOL in Oracle/Linux environment)
Successfully remediated 80+ programs from mainframe env to run in microfocus cobol against Oracle DB in Linux env. I have one pgm that is moving high and low values to output header trailer records per requirement. Leading 9 bytes of each record. My problem is that when it ran on the mainframe I got  hex x’00′ in the [...]

Answer Question   |  February 22, 2010  12:25 PM
COBOL, Linux, Oracle Database
asked by:
5 pts.

Automaticall Refresh Display (COBOL)
I have a need to have the screen do an Automatic Refresh. I have created a working sample using CLP and setting the Display file to waitrcd(5). CRTDSPF WAITRCD(5). So I know it can work. I have found several examples using RPG. I need to do it using COBOL. Can any one help? I have [...]

Answer Question   |  February 10, 2010  9:28 PM
AS/400, COBOL, CRTDSPF
asked by:
KSC
90 pts.

Enterprise Cobol obtaining calling program name
Enterprise Cobol v3.4 on Z/OS 1.9. Batch called program. I want to parse through mvs data areas to obtain the program name that called my program(dynamically). I have viewed examples on Share website to get some system info. I need specifically the program name that called my program. Is this possible in a batch program? [...]

Answer Question   |  February 4, 2010  8:20 PM
COBOL, Data Area, MVS
asked by:
5 pts.

HOW TO USE A PERFORM IN COBOL?
USING PERFORM TO EXECUTE MY PASSWORD HOW DO I USE IT?

Answer Question   |  January 22, 2010  3:24 PM
COBOL, Login password
asked by:
5 pts.