call a fas file in a ScriptPro.

call a fas file in a ScriptPro.

mruPRQUJ
Advocate Advocate
463 Views
6 Replies
Message 1 of 7

call a fas file in a ScriptPro.

mruPRQUJ
Advocate
Advocate

Hi there,

 

Could you please advise me how to call a fas file in ScriptPro? Thank you very much in advance.

0 Likes
Accepted solutions (1)
464 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

you need to create a script file that's a text file with extension .scr

then within the contents of the script file assuming the fas file is test.fas:

(load"test.fas")

This also assumes  test.fas is located in one of the folders defined under Options>Files>Support File Search Path and Options>Files>Trusted Locations

And remember to include an enter to complete the command in the script before saving.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 7

mruPRQUJ
Advocate
Advocate

Hi there,

 

It looks like it did not work. The fas file name is "BCH_H_Reporting". The script file name is "call fas.scr". The script  content is below

(load"BCH_H_Reporting.fas")

 

two images are below.  

mruPRQUJ_1-1721778348321.png

mruPRQUJ_0-1721778293326.png

Do I need to add "qsave"?

Thanks a lot!

 

0 Likes
Message 4 of 7

paullimapa
Mentor
Mentor
Accepted solution

Add 2nd line the name of the command to run BCH_H_Reporting.fas

And if you do want to save the file definitely add qsave command at the end.

for example if command is BCH_H_Reporting then your script file should contain:

(load"BCH_H_Reporting.fas")
(c:BCH_H_Reporting)
_.Qsave

or:

(load"BCH_H_Reporting.fas")
BCH_H_Reporting
_.Qsave

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 7

mruPRQUJ
Advocate
Advocate

Great job! It works perfect, thank you very much! 🙂

0 Likes
Message 6 of 7

paullimapa
Mentor
Mentor

Glad to have helped…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 7 of 7

mruPRQUJ
Advocate
Advocate

cheers!!!

0 Likes