MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to extract only one column's data into an output file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mitvvce
Beginner


Joined: 04 Jan 2007
Posts: 2
Topics: 3

PostPosted: Tue Jun 10, 2008 10:58 am    Post subject: How to extract only one column's data into an output file Reply with quote

Hi,
I am a beginner and i think this is a very basic question..
suppose i have the following input record

aaaaa 11111
bbbbb 22222

Out Put should like

11111
22222

Can anybody help me with the JCL
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Jun 10, 2008 11:12 am    Post subject: Reply with quote

JCL cannot help you with this. I presume this is a DB2 table in that you mention COLUMN in the topic title.

Assume the table is called ATABLE and the columns are called COL1 and COL2:

SELECT COL2
FROM ATABLE;
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
mitvvce
Beginner


Joined: 04 Jan 2007
Posts: 2
Topics: 3

PostPosted: Tue Jun 10, 2008 11:23 am    Post subject: Reply with quote

Thanks for the quick response.
I wanted to use some sort utility in JCL to extract only the second column values from the Input Sequential file. I tried OUTREC and it Worked..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group