I am trying to get the following For Loop to return the last day of each month starting with the last day in February. But when I start with a date of 02/28/2006 or 02/29/2008 the rest of the months end up with '28' as their day value. I need it to be the last day of the month for each month...
Hello everyone,
I am using RMCOBOL-85 on Linux.
The following I have on one line but it goes past column 72 and thus I get an error
1152 "SELECT JunkId, JunkName, JunkDate, Descripti
***** 1) 0098: E Nonnumeric literal must end with quotation mark. (scan suppr...
Hello.
I'm on RMCOBOL-85 on Linux. I'm parsing a record and trying to figure out the best way to reformat a date field on it. The date field appears in the very beginning of the record.
There are many ways I should anticipate this date field coming in, but my end goal is to put it into a...
Hello,
Anyone have good C.R.U.D.(Create,Read,Update,Delete) examples using InstantSQL. I'm brand new to using this, so I need to do some simple COBOL code accessing SQL Databases.
I'm Running RMCOBOL-85 on Linux. Just downloaded the InstantSQL Jumpstart Kit. Copied file into my /usr/rmcobol/...
Hello. I'm using RMCOBOL-85 on a Linux box.
I need to find a social security number field that would potentially be in a random place in a flat file record.
This data scrubbing is insane to do in COBOL(in my opinion) when Java is touching the file first before sending it to me. Java, from...
Hi,
I'm using RMCOBOL-85 and I need to learn how to tell when I've run into a ^L(carriage return?) control character. I found the EBSIDIC/ASCII table in my manual but am lost as far as the approach to scanning each line.
I'm reading in a checkprint file that is put into a queue for me...
Okay. This has bothered me off and on several times.
I'm on RMCOBOL-85 on Linux platform.
WORKING-STORAGE.
01 WS-1 PIC 9(8)V9(2).
01 WS-NBR-RFMT PIC ZZZZZZ99.99.
01 WS-DISPLAY-FIELD PIC X(10) JUST.
PROCEDURE.
MOVE WS-1 TO WS-NBR-RFMT.
MOVE WS-NBR-RFMT TO WS-DISPLAY FIELD...
Hi everyone.
I'm running RMCOBOL-85 on Linux.
I noticed something yesterday when moving a alphanumeric field to a numeric formatted field.
Does a move statement from a PIC X to a PIC 9(8)V9(2) automatically get rid of commas from the PIC X?
Here's my code.
WORKING-STORAGE SECTION.
01...
I am running RMCOBOL-85 on Linux.
I am reading in comma delimited file records. I am not allowed to have our clients send us the data any different than how they currently do.
The challenge is that when they take their excel spreadsheet, save as .csv, fields that have commas within them will...
Can someone explain to me why
runcobol FILLGACH.COB a=TESTACHRECS
causes this to come up?
I am running RMCOBOL-85 on Linux.
PASS-FILENAME:
TESTACHRECS
WS-FILENAME:
TESTACHRECS
COBOL I/O error 30, UNIX error 21 on FILE-ARG-INPUT file /gach/data/.
COBOL I/O error...
I'm on RMCOBOL-85 on Linux.
I have a parent program running as a server.
It calls a child program.
In the Parent Program...
PROCEDURE DIVISION.
...
...
A pipe msg is read,
...
CALL "CHILD.COB"
...
Go back to the top and read for more pipe msgs(A loop on the pipe read in other words - a...
I didn't know what word to search for in my RMCOBOL Language Ref Manual...
I have a screen for entry/update
I'm on the Update screen and the user selects to view/update a numeric field which I have display on line 23 for them as:
[0000012345] and their prompt is on the first 0.
But what if I...
I am using RMCOBOL-85 on a Linux platform.
I've been getting this error off and on for the last 8 months.
I have a handful of Cobol applications("users") that access the same file by an OPEN I-O TEST-FILE statement.
The manual indicates that if I wanted to lock a file that I would have to use...
I'm using RMCOBOL-85 on Linux...
How do I fix the date showing up as what I believe must be GMT since it's usually 5-6 hours off my local time. At a prompt when I type the linux command "date", the time shows up as my local time, but in my COBOL it shows up as the GMT time I guess.
In my...
If I have a file that is 1 line and it has been told to me that it is a Binary Sequential File, how should I take that file and read it's one line into records with a length of 94?
I'm thinking...
FD BINARY-FILE-IN.
01 BINARY-RECORD PIC X(Huge/variable length unknown)
FD SEQ-LINE-OUT.
01...
Hello,
I'm using RMCOBOL-85 on Linux...
I just have a quick question you probably know...
I saw in the Lang Ref manual on page 1-15 that QUOTE Represents a constant not a literal. It says
"cannot delimit a non-numeric literal".
I'm trying to output something like
"M","Field1, Inc.","etc"...
I want to make a cross-reference database.
I am using RMCOBOL-85 on Linux.
Basically, I have an Indexed file I'll be reading from.
I want to store multiple records from 1 record read.
If the record read has:
"Bob and Tom Enterprises" as a name field and a file number of...
I'm working with importing a huge flat file approximately 1 Gig.
SELECT UCC-INPUT ASSIGN TO
"/nic/data/UM000204_01.txt"
ORGANIZATION IS LINE SEQUENTIAL
ACCESS IS SEQUENTIAL.
This is what is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.