Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SiouxCityElvis

    DateAdd-Start with last day of February + 1 month

    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...
  2. SiouxCityElvis

    how to run 1st Monday of every month

    How do I set my crontab to run a process 1st Monday of every month? Thanks. -Programmer dummy
  3. SiouxCityElvis

    "Literal" line to line continuation

    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...
  4. SiouxCityElvis

    Date formatting

    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...
  5. SiouxCityElvis

    InstantSQL C.R.U.D. Example Request

    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/...
  6. SiouxCityElvis

    SSN SEARCH(RMCOBOL-85)

    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...
  7. SiouxCityElvis

    How to Scan for CR control chars

    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...
  8. SiouxCityElvis

    LEFT ALIGN

    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...
  9. SiouxCityElvis

    Numeric Formatting

    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...
  10. SiouxCityElvis

    Data Scrub, within comma delimited record

    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...
  11. SiouxCityElvis

    Parameter=Sequential File to read - getting Unix error 21

    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...
  12. SiouxCityElvis

    Variables not re-intializing

    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...
  13. SiouxCityElvis

    validate key entry(RMCOBOL)

    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...
  14. SiouxCityElvis

    RMCOBOL round up

    How do I round a PIC 9(8)V9(02)? Say, I have something that is a value of 10.01 and I need it rounded to 11.00 Thanks. -David
  15. SiouxCityElvis

    RMCOBOL-85 I/O Error 99

    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...
  16. SiouxCityElvis

    Accepting the date on the system

    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...
  17. SiouxCityElvis

    Reading a Binary Sequential File

    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...
  18. SiouxCityElvis

    STRING with QUOTES around each field

    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"...
  19. SiouxCityElvis

    separating words in one field

    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...
  20. SiouxCityElvis

    RM COBOL I/O error 94,67

    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...

Part and Inventory Search

Back
Top