As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
In 7.1.3 docs, Developing Reporting Applications, it gets a very minor role with &RETCODE on page 6-91! Initially it was DOS STATE, but STATE works now.
It is a v. useful command.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Is STATE an operating system command? I've just run it on a Windows PC and a UNIX server., but I don't think this will work on a MVS system. You may need to use
-? TSO DSNAME 'FOCUS.DB.NAME' and then check &RETCODE.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Si STATE n'est pas reconnu et "-TSO DDNAME ..." l'est, cela veut peut-etre dire que le serveur de WebFocus est MVS. Sur ce systeme la commande n'existe pas. Sur les autres (VM, WIN, UNIX, LINUX etc.), oui. Bon FOCUS!
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
En effet le serveur de WF est MVS .... Par contre sais-tu comment récupérer le path name afin d'éviter de la mettre en dur pour utiliser "-? TSO DSNAME 'path.nomfic' " ?
J'ai essayé ça sur un fichier existant et le DSNAME est à blanc .... -? TSO DDNAME 'fic'
quote:
Originally posted by Danny-SRL: Delphine,
Si STATE n'est pas reconnu et "-TSO DDNAME ..." l'est, cela veut peut-etre dire que le serveur de WebFocus est MVS. Sur ce systeme la commande n'existe pas. Sur les autres (VM, WIN, UNIX, LINUX etc.), oui. Bon FOCUS!
Unfortunately the WHENCE command will not really help Delphine, I think she requires a method to retrieve the DSNAME into a Dialogue Manager variable which is then used in the -? TSO DSNAME command, n'est-ce pas?
Normally,
-? TSO DDNAME [i]ddname[/i]
should work, if, of course, the DDNAME in question is actually allocated to the FOCUS session. If the file exists, &DSNAME is populated with the DSNAME, if it does not exist, &DSNAME is set to blank.
Delphine, is it possible that the file is not allocated to the FOCUS session?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Exactly! And I can check the DSNAME with -? TSO DDNAME .... I try it but i write it wrongly.... (sorry my english is very bad)...
It's OK now... thanks a lot
quote:
Originally posted by Francis Mariani: Unfortunately the WHENCE command will not really help Delphine, I think she requires a method to retrieve the DSNAME into a Dialogue Manager variable which is then used in the -? TSO DSNAME command, n'est-ce pas?
Normally,
-? TSO DDNAME [i]ddname[/i]
should work, if, of course, the DDNAME in question is actually allocated to the FOCUS session. If the file exists, &DSNAME is populated with the DSNAME, if it does not exist, &DSNAME is set to blank.
Delphine, is it possible that the file is not allocated to the FOCUS session?
Française.... Si je peux écrire français... chouette... Au fait .... j'ai un soucis avec -? DSNAME et DDNAME ...!!
La façon dont c'est monté le DSN est créé automatiquement en début d'exécution en batch... à tous les coups il le trouve alors que le master n'est pas créé.... dommage.... ça marchait très bien en intéractif
On n'a pas besoin d'un Master pour les commandes -? TSO DSNAME/DDNAME. Pour garder le Master crée par ON TABLE HOLD AS ..., assigner DDNAME HOLDMAST a un PDS existant.
Sorry, my written French is not perfect.
I don't think we need a Master to execute -? TSO DSNAME/DDNAME. To keep a Master created by ON TABLE HOLD AS ..., allocate DDNAME HOLDMAST to an existing PDS.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
you write french more than me for english.... (oouuuhh lala....) i find my problem.... i read my file in the beginning of the procedure and at the end i create it "again" ... the problem is that at the beginning the file out is deleted... i change my procedure in the way of using two files ... and it's ok now..
thanks a lot for your help ...
Delphine
quote:
Originally posted by Francis Mariani: On n'a pas besoin d'un Master pour les commandes -? TSO DSNAME/DDNAME. Pour garder le Master crée par ON TABLE HOLD AS ..., assigner DDNAME HOLDMAST a un PDS existant.
Sorry, my written French is not perfect.
I don't think we need a Master to execute -? TSO DSNAME/DDNAME. To keep a Master created by ON TABLE HOLD AS ..., allocate DDNAME HOLDMAST to an existing PDS.