Execute JShell Commands in File

49 views
Skip to first unread message

gneizer

unread,
Dec 11, 2009, 3:31:30 AM12/11/09
to jBASE
I have a file containing the following commands that I want to execute
at JSHELL.

COMO ON TEST.TXT
LIST F.USER NOPAGE
COMO OFF

What i want is to execute the commands like "EXECUTE TEST.TXT"
instead of typing one line at a time at jshell.

Simon Verona

unread,
Dec 11, 2009, 11:47:09 AM12/11/09
to jb...@googlegroups.com
You don't say whether you are on Windows or Unix versions of jBASE

I would create as a PROC (providing you have an MD).

JED MD RUNTHIS
001 PQ
002 HCOMO ON TEXT.TXT
003 P
004 HLIST F.USER NOPAGE
005 P
006 HCOMO OFF
007 P

Type RUNTHIS at the jshell to run.

or in windows create a batch file eg

JED . RUNTHIS.BAT
001 COMO ON TEXT.TXT
002 LIST F.USER NOPAGE
003 COMO OFF

type in RUNTHIS at the jshell to run

in Unix

JED . runthis

001 COMO ON TEXT.TXT
002 LIST F.USER NOPAGE
003 COMO OFF

type in RUNTHIS at the jshell to run.

Hope this helps.

Simon

===========================
Simon Verona
Director
Dealer Management Services Ltd

email: si...@dmservices.co.uk
tel: 0845 686 2300
simon.vcf
Reply all
Reply to author
Forward
0 new messages