Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using TSO commands in batch FOCUS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using TSO commands in batch FOCUS
 Login/Join
 
Silver Member
posted
Okay here is the problem. I am using FOCUS to help me recall / unmigrate a bunch of files. The 'list' is in a file that is input for another job and I'm editing the list names to get what I want to use. The issue is the list may have wildcards (like UID.MASTER.*). Unless someone has a better utility I'm going to use TSO LISTDS (which BTW works great in native FOCUS). But when I put it in the required JCL stream - no go.

<snip>
I've tried
000075 -REG
000076 -SET &DSNLIST = '''' | &PLINE || '''' || ' ';
000077 -TSO LISTDS &DSNLIST;
and
000077 TSO LISTDS &DSNLIST;
with
000078 -RUN
000078 -*UN and without
000079 -GOTO MORE;
000080 -*
000081 -LEVELS
000082 -SET &DSNLIST = '''' | &PLINE || '''' || ' LEVEL';
</snip>

Any ideas.
 
Posts: 38 | Location: Chicago, IL area | Registered: June 16, 2004Report This Post
<Pietro De Santis>
posted
no go? What's the error you're getting?

When you say you put it in the JCL stream, do you mean like this:
//STEP01 EXEC FOCUS
//SYSIN DD *
...
-REG
-SET &DSNLIST = '''' | &PLINE || '''' || ' ';
TSO LISTDS &DSNLIST
...
FIN
/*
//

If so, this won't work - you cannot have Dialog Manager commands in the JCL stream.

What you need to do is to create a FOCUS program and execute it from the JCL stream:

//STEP01 EXEC FOCUS
//SYSIN DD *
EX KEEPACT1
FIN
/*
//

The program KEEPACT1 would then contain all the program code.

You can also code the SYSIN like this:

//SYSIN DD DSN=ZZ.YY.CNTL(KEEPACT1),DISP=SHR

I think the last executed line in the program needs to be FIN to ensure that the condition code is zero.

I hope this helps.
 
Report This Post
Master
posted Hide Post
Hi Sandy,

How about extracting the names of the datasets, in a separate step, before your FOCUS step?

For example:



//S200 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IDCAMSPR DD DSN=SYSID.GETDS,
// DISP=SHR,
// SPACE=(TRK,(5,5),RLSE),
// DSORG=PS,LRECL=125,RECFM=VBA
//SYSIN DD *
/* GET ALL DATASETS BEGINNING WITH X.X. */
LISTCAT LVL(X.X) ALL OFILE(IDCAMSPR)
/* */

You can then use the output (IDCAMSPR), from this step, as input into your FOCUS step.

Regards,
Dave

This message has been edited. Last edited by: <Mabel>,
 
Posts: 822 | Registered: April 23, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using TSO commands in batch FOCUS

Copyright © 1996-2020 Information Builders