RUN COMMAND

Joe Boyle atla38 at dsl.pipex.com
Thu Sep 28 11:41:44 CDT 2006


Assuming that files 'a' and 'b' are dictionary files, you would have to map
the file open names as '$a' and '$b' respectively in order for the files to
be opened via the values in the environment variables.  I have no idea what
you would have to do to the Cobol routine in order for it to interpret the
environment variables as file pointers.

P.S. this is'nt the case for lucky VMS users.


-----Original Message-----
From: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com
[mailto:powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf Of
Vidyasagar Goparaju
Sent: 28 September 2006 15:55
To: Joe Boyle; Abd Ghani Abdullah; powerh-l at lists.sowder.com
Subject: RE: RUN COMMAND


Try this:
 
LET T_FILE = "A" + staff-id

IF NOT SETSYSTEMVAL("A",TRUN(T_FILE))
THEN ERROR "Cannot set variable A"

LET T_FILE = "B" + staff-id

IF NOT SETSYSTEMVAL("B",TRUN(T_FILE))
THEN ERROR "Cannot set variable B"

When you are done... after the COBOL run, run the following:

IF NOT DELETESYSTEMVAL("A")
THEN ERROR "Cannot reset variable A"

IF NOT DELETESYSTEMVAL("B")
THEN ERROR "Cannot reset variable B"

Sagar

-----Original Message-----
From: powerh-l-bounces+vidyasagar.goparaju=kewill.com at lists.sowder.com
[mailto:powerh-l-bounces+vidyasagar.goparaju=kewill.com at lists.sowder.com
] On Behalf Of Joe Boyle
Sent: Thursday, September 28, 2006 9:40 AM
To: 'Abd Ghani Abdullah'; powerh-l at lists.sowder.com
Subject: RE: RUN COMMAND

Does it help if you try using exported env vars in place of soft links
as
below ?

Temp t_afile char* 50
Let t_afile = "a=fullpath/A" + staff-id + ";export a"
run command t_afile

Temp t_bfile char* 50
Let t_bfile = "b=fullpath/B" + staff-id + ";export b"
run command t_bfile


-----Original Message-----
From: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com
[mailto:powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On
Behalf Of
Abd Ghani Abdullah
Sent: 28 September 2006 09:19
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.

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

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