Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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: 1775
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 4 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us