I could create a simple email script like
mailx -s "Subject" email_address < $Template
My problem is embedding some coded variables in $Template
so that it will use local variables passed to the script such
name, date, etc. I could have just typed in the body of the email and use ${var} but the...
Need your help on this using ksh (or maybe awk).
I want to read all files is a directory that has an extension of .dmx and then append the data to an empty file. This .dmx file has a timestamp on it's name and I also want to delete it once the content is copied to the other file.
Sorry but I...
I have a ksh scripts that when called by a cobol program
although it is successful I'm getting the following
log messages 4 times.
sh: D: not found.
This script is in aix and when I call the script using the
command line I'm not getting any messages at all.
The script is just...
I have some maps that uses Mercator's Database Interface and they are all running perfectly well with Oracle 9.x but not on
Oracle 10g. It only read the first record and then throws an error that it has found an invalid data.
Would appreciate any help on this.
I'm hoping that somebody might have a similar problem that I'm having with a ksh script. I have a script that is called within a cobol program as the last statement. This program/script runs perfectly well under solaris. However, under AIX the cobol pgm runs okay but not the script. If I ran the...
We are using micro focus cobol and we have a program that calls a shell script as the last statement. In sun solaris the program calls the script without any problem. But in AIX the cobol program runs but not the script. If I call the script thru the command line, it works.
I'll appreciate if...
We are still using mercator 5.0 for Lawson applications.
We are getting error message "Broken Pipe: Mercator Adapter failed". Anyone who have seen this message before?
We are in the process of moving to Websphere but that is still a year ahead. Appreciate any help on this.
jmanj
Hi all,
I have asked this question in the unix scripting forum but this might be the appropriate forum to ask.
We are using micro focus cobol netexpress(unix/solaris) and some of my pgms has calls to unix .ksh script and they do ran perfectly well. One thing I have not done is to test for the...
Hi all,
I'm writing a cobol program that calls a .ksh script
with 2 parameters. In my script it will look something
like this:
TMPDIR1="/DEVDIR/edi"
TMPDIR2="/DEVDIR/work"
WORKFILE="EDIFILE.txt"
TEMPFILE1="REJECT.TXT"
cd $TMPDIR1
parm2=$2 EXPORT parm2
IF $1=1; Then
cd $TMPDIR1
if [ -f...
I don't have a reference to MicroFocus NetExpress cobol 4.2 I think. I wonder if there is a way to do a floating dollar sign to a field. I don't remember if this is even possible in cobol. I have a client who wants an excel or csv output with
amount having dollar sign. Without using any...
Hello,
I have had a lot of help in this forum learning how to write a script in unix and I really appreciate your help. Now I have another challenge for me to do. The following script below works fine when I'm trying to list all active procedures running under ScanFileClient (daemon). I have no...
How do you add trailing blanks to a flat file. I have a MF cobol program that creates a fixed length record of 300 characters. The last 60 characters is an all blank field.
I have used filler with value spaces, move spaces to the field
or move " " to the field but the created file does not...
I'm a biginner with unix and hope somebody can help me with searching files that contains certain words or characters.
I simply want to know what command I will use to list all files in a directory that has the word "500-PROCESS-CREATE"
in it.
Thanks for any help.
I'm getting an error " SIGN not expected"
on 02 COUNT PIC S9(10)V99 SIGN IS LEADING.
I'm wondering if this is one of those version of micro focus
server express that does not accept leading sign.
Any help is greatly appreciated.
Thanks.
note: COUNT is part of an output record.
I got this error when I'm trying to compile a program in
Micro Focus Sever Express V2.2. Hope anyone can help on this
matter because the help support could not help.
PrcCNDKEY(): Syntax Error, nCndStks < 2 (Line 867)
Note: I don't even have line 867. Don't know where to look at.
I created...
Here I am again trying to see if anyone has done graphics printing in COBOL. This means printing boxes, shading, font sizing etc just like printing pay stubs. I have done this but in different language. I'm trying to convert paycheck printing in unix environment using micro focus server express...
We have a high speed OCE printer and I have done a lot of PCL commands in my program that were accepted by the printer. I can do a lot of graphics using PCL and no problems at all. Except for one thing. The manufacturer does not want to give me the escape sequence on how to activate/deactivate...
I'm sorting a work file and it seems to be okay except at the
very end(I think) I'm getting this message. Hope somebody can help: Bad File Status 4 1 On File SORTEDFILE
Here's my sort statement:
SD SORT-FILE.
01 SORT-REC.
SSN
etc etc etc
OPEN OUTPUT SORTEDFILE.
SORT SORT-FILE...
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.