IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

write multiple steps using one skeleton


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Apr 27, 2012 2:55 pm
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: 1788
Location: Bloomington, IL

PostPosted: Fri Apr 27, 2012 3:18 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top