Hi Micev, T24 programming standards refrains you from calling T24 API's outside T24 environment. But still if you insist on calling T24 API's from jsh, you can follow this(only if you wish) you can initialize the Global COMMON variables and then invoke GLOBUS API's. If you're working post T24 R07 release, replace the call to GLOBUS.INITIALISE with T24.INITIALISE *---------- SPFFile = 'F.SPF' SPFFileHandler = '' SPFFileID = 'SYSTEM' SPFFileRec = '' SPFReadErr = '' CALL GLOBUS.INITIALISE CALL OPF(SPFFile,SPFFileHandler) CALL F.READ(SPFFile,SPFFileID,SPFFileRec,SPFFileHandler,SPFReadErr) *---------
This is for INFORMATION PURPOSE ONLY and not for actual coding! Thanks, Praveen. On Apr 7, 8:51 pm, Igor Micev <[email protected]> wrote: > Hi > Yes, you are exact, I tried with OPEN and READ and it works.Thanks to all > > Regards > Igor > > On Tue, Apr 7, 2009 at 10:27 AM, Saravanan Thangavelu < > > > > [email protected]> wrote: > > hi, > > > OPF is an API which you can use only inside the T24. As jim said this OPF > > or F.READ that you are using needs some variables to intilzed (like your > > company mnemonic in this case)which will get intilzed only if you login in > > to T24.So Use jbase "OPEN" and "READ" statement , your problem will be > > solved. > > > Regards, > > Saravanan. > > > On Mon, Apr 6, 2009 at 7:39 PM, Gayathri Ramakrishnan < > > [email protected]> wrote: > > >> When ever you open a new session login into T24 and then try to run your > >> program from jshell prompt. > > >> 2009/4/6 Igor Micev <[email protected]> > > >>> Hi All, > > >>> I have a routine that have to be executed from jShell. It is a > >>> 'PROGRAM' type routine, in which is called another 'SUBROUTINE' type > >>> routine which makes some OPFs to some Globus applications. > > >>> When i run the PROGRAM type routine the following error msg is being > >>> shown: > >>> ** Error [ NOT_FILE_VAR ] ** > >>> Variable is not an opened file descriptor , > >>> Var F.PROTOCOL , Line 99 , Source PRO > >>> Trap from an error message, error message name = NOT_FILE > >>> Line 99 , Source PRO > >>> jBASE debugger-> > > >>> If i run the routine via Awaitig prompt (NetTerm), it works, but i > >>> want to run it directly from jShell > >>> PGM.FILES exist for both the routines. > > >>> Any idea? > > >>> Regards > >>> Igor > > >> -- > >> Regards > >> Gayathri > > > -- > > Regards, > > saravanan.T > > -- > Igor Micev --~--~---------~--~----~------------~-------~--~----~ Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en -~----------~----~----~----~------~----~------~--~---
