Microfocus COBOL in Windows NT. I've narrowed all the
code down to nothing but read the file into a work area
and write the file from the same work area. I'm not even
moving anything.
Hello all,
I have an 11 byte hex field used for barcode purposes
and when I come across an x'11' I get an x'00' byte
inserted before it and the field now becomes a 12 byte
field. I have tried defining the field as PIC X(11),
PIC 9(11), PIC 9(11) COMP, and PIC 9(11) COMP-3 with no
luck. PLEASE...
Thanks for all your responses, I'm referencing an old college Cobol book that has poor examples of INSPECT and
reference modification. Thus, I have not quite figured
it out yet. To Crox, the SPF editor would have been my first choice but I have large files coming in regularly and
would rather...
Hello,
Is there a way to scan a whole record for a keyword. For
example I want to drop records with the word "widget" that
can be found anywhere in a particular 100 byte field.
Any help you can provide is appreciated.
Hello,
I trying to capture a portion of the input file name
and write it to the output record. How would I go
about doing this? For example, my Select Filein statement
refers to filename TEST.DM123456.PROD.TXT and I want
to capture DM123456 to store in a variable for my
output.
Thanks
Dan.
Hello,
I can't get my dos SET statements to work in Microfocus
Cobol version4.0.28 for Windows2000. I'm trying to
use a statement such as "SET FILEIN1=C:\DATA\DATAIN.TXT"
and then run the executable. I can get it to work in my
evaluation copy of Realia Cobol, but not MFC. In the...
AustinOne, I think you're right in that the input file
will have to be sorted on state field for this to work.
I need an algorithm to process an unsorted file and will
probably have to go back to my original plan of using
tables. I'm trying to use this as part of my data
validation program so...
Hi was wondering if anyone has a COBOL algorithm handy
that would perform a keycount on a specified field.
For example, lets say I wanted a keycount on a state
field in a sequential file of 1 million records and
I want it to return a report that looks something like
the following:
State Count...
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.