Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
write multiple steps using one skeleton

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 35
Location: Pune

PostPosted: Fri Apr 27, 2012 2:55 pm    Post subject: write multiple steps using one skeleton
Reply with quote

Is it possible to use one skeleton to write multiple steps in a file.

skeleton
select col1 from &Tbname
where col2=&val;


Below multiple lines in a file

select col1 from T1
where col2=10;
select col1 from T3
where col2=20;
select col1 from T2
where col2=30;
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1783
Location: Bloomington, IL

PostPosted: Fri Apr 27, 2012 3:18 pm    Post subject: Re: write multiple steps using one skeleton
Reply with quote

Vkp321 wrote:
Is it possible to use one skeleton to write multiple steps in a file.

skeleton
select col1 from &Tbname
where col2=&val;


Below multiple lines in a file

select col1 from T1
where col2=10;
select col1 from T3
where col2=20;
select col1 from T2
where col2=30;

Certainly. Although I won't be able to test for a few hours, the logic will go about like this:
Code:
address ispexec "FTOPEN"

do i = 1 to lots
  tbname = tables.i /*assume stem tables. contains all table names */
  val    = values.i /* assume stem values. contains all values searched for */
  address ispexec "FTINCL SKELETON"
end

address ispexec "FTCLOSE QUERIES"

You could also put the data in a table and use the )DOT construct in your skeleton.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us