PH607 - AS/400 RUN COMMAND "..." ... IF COMMANDOK

Daniel Mielke DMielke@aic.com
Tue, 22 Jan 2002 08:58:15 -0500


Thanks Merol, (and Joe Boyle)

The syntax NOWARN... does work, but for the life of me I can't figure out
why the QDESIGN manual didn't have it...



-----Original Message-----
From: Merol Newman [mailto:merol.newman@ramesys.com]
Sent: Tuesday, January 22, 2002 8:46 AM
To: Daniel Mielke
Cc: powerh-l-admin@cube.swau.edu
Subject: RE: PH607 - AS/400 RUN COMMAND "..." ... IF COMMANDOK



Hello Daniel

I was working on this program yesterday, and remembered seeing this bit (not
my
code, but I know it works)

  let t_command = "sh -c '[ -f $sbs_data/isam/" &
                + trunc(t_tape_name) + " ]'"
  run command t_command nowarn on error continue
  if not commandok
  then
(etc etc)

This is for Unix, but it's worth a try - add "on error continue"

regards
Merol

merol.newman@ramesys.com
Ramesys, Eldon Way, Crick, Northamptonshire, UK. NN6 7SL
phone 01788 822133/823831, fax 01788 823601


> -----Original Message-----
> From:
> [mailto:powerh-l-admin@cube.swau.edu]On Behalf Of Daniel Mielke
> Sent: 22 January 2002 13:20
> To: Powerhouse List (E-mail)
> Subject: FW: PH607 - AS/400 RUN COMMAND "..." ... IF COMMANDOK
>
>
> Ok, let's try this again...
>
> >  -----Original Message-----
> > From: 	Daniel Mielke
> > Sent:	Monday, January 21, 2002 3:37 PM
> > To:	Powerhouse List (E-mail)
> > Subject:	PH607 - AS/400  RUN COMMAND "..."  ... IF COMMANDOK
> >
> > Hi Listers,
> >
> > When running a system command, a system error is issued.  I have a "IF
NOT
> > COMMANDOK" statement immediately following the "RUN COMMAND" statement,
> > that is not being processed.  The screen just stops processing and goes
to
> > the command line.  What am I missing?  Help!
> >
> > BUY. HOLD. AND PROSPER.
> >
> > Daniel Mielke
> > Senior User Analyst
> > AIC Limited
> > 1-888-710-4242 (4614)
> > dmielke@aicfunds.com
> > www.aicfunds.com
> >
> >
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.
>