RUN COMMAND
Ken Langendock
Ken at Langendock.com
Thu Sep 28 06:47:53 CDT 2006
I believe I know what your problem is.
Unlike HP, Unix spawns a new sub process every time you execute the RUN
COMMAND statement. Each of those "ln" commands are lost as soon as each
RUN COMMAND finishes. The only way this is going to work is if all these
commands were in one 'script' file and you RUN COMMAND the whole script.
Forgive me if I am wrong about this but I generate a script for each
process on-the-fly so that I can run on all platforms with single source
code.
The other think that may be causing your problem is the "ln" command. On
MPE a subfile is one single file, On all other platforms the subfile is
made up of two files (a data file and a mini-dictionary). If you are
creating a subfile from the QTP program, I think this won't work...you
would need to output a portable subfile nodictionary (which creates a
.dat file).
Anyways, a few suggestions for you to try
Ken
-----Original Message-----
From: powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com
[mailto:powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com] On
Behalf Of Abd Ghani Abdullah
Sent: September 28, 2006 4:19 AM
To: powerh-l at lists.sowder.com
Subject: RUN COMMAND
Hello all,
What is the best way to convert RUN COM in QDESIGN in MPE to UNIX?
The scenario is in PROCEDURE DESIGNER
run command "purge file A" + staff-id
run command "purge file B" + staff-id
run command "QTP" (to populate file A)
run command "file a = A" + staff-id
run command "file b = B" + staff-id
run command "COBOLX"
COBOLX uses A as input and B as output. the staff-id is dynamic based on
Currently we are using the following command
run command "rm A" + staff-id
run command "rm B" + staff-id
run command "QTP" (to populate file A)
run command "ln -sf A" + staff-id + " a"
run command "ln -sf B" + staff-id + " b"
run command "$NLRUNCBL COBOLX.acu"
Eventhough the data is created in file A+staff-id, COBOL seems not to
read the
data from there and printing out blanks.
Thanks & regards,
Ghani.
--
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to
powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the
list archive at Google.
More information about the powerh-l
mailing list