You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How to run SQR program from Process sheduler

1 reply [Last post]
Guest's picture
Guest

Hi,

I am facing problem running sqr program in process schduler.Please provide me steps to run program in ps.
how to run the below sqr program in process scheduler.

#include 'setenv.sqc'
BEGIN-HEADING 2
PRINT 'SQR PROGRAM'() center
PRINT 'EMPID' (+1,6,20)
PRINT 'NAME' (,+2,23)
PRINT 'COUNTRY' (,+4,25)
END-HEADING
BEGIN-PROGRAM
DO PROCEDURE1
END-PROGRAM
BEGIN-PROCEDURE PROCEDURE1
#DEBUG SHOW 'START PROCEDURE1'
BEGIN-SELECT
EMPLID (+1,6,20)
NAME (,+2,23)
COUNTRY (,+4,25) ON-BREAK SKIPLINES=1
FROM PS_PERSONAL_DATA
END-SELECT
graphic (5,1,66) horz-line 40
END-PROCEDURE PROCEDURE1

rahulkhandelw's picture
User offline. Last seen 9 years 28 weeks ago. Offline
Joined: 10/16/2009
Posts: 34
Re: How to run SQR program from Process sheduler

U need to attach stdapi.sqc in your sqr program. call stdapinit procedure as the first procedure and stdapiterm as the last procedure. These procedures makes an SQR program api aware and u will be able to run the program from process scheduler. For more information, refer any delivered SQR program.