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 Usergroups 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: 1754
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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