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: 1753
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 To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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