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
 

 

Include Table Column names in extract file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rguhanath

New User


Joined: 16 Oct 2006
Posts: 80
Location: chennai

PostPosted: Mon Nov 07, 2011 2:08 pm    Post subject: Include Table Column names in extract file.
Reply with quote

Hi,

I am using IKJEFT01 tool for extracting the data from DB2 Table. In IFJEFT01 JCL STEP, i have given the query with alias Column names which i want to display it as Header in output file. But after ran the JCL i can able to see only Table data and got CC=4 Error message. Any one please help me that how to include Table column names along with data using IKJEFT01 tool in JCL to avoid another step for creating Header in the output file.

Thanks in Advance.

Regards,
Nath.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 07, 2011 2:39 pm    Post subject:
Reply with quote

Line 3 of the control statements is the problem
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Nov 07, 2011 2:49 pm    Post subject: Reply to: Include Table Column names in extract file.
Reply with quote

Quote:
I am using IKJEFT01 tool for extracting the data from DB2 Table


isn' t it nice to see IT professionals use such a lousy terminology icon_cool.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Nov 07, 2011 3:20 pm    Post subject:
Reply with quote

IKJEFT01 is the TSO/E program. You use it whenever you wish to perform a TSO function within a batch job - so you can say, IKJEFT01 is TSO in Batch but calling it as "tool" is over simplification of terminogies if not nonsense.

Quote:
i have given the query with alias Column names which i want to display it as Header in output file. But after ran the JCL i can able to see only Table data and got CC=4 Error message.
I don't understand it much, as expat has also showed it in symbolic way. A Completion Code of 4 is not error, why do you think so it's an error? And what is "alias Column names"?

Suggest you show the Job you've used, the message you think is an error-mesage and what you expect as output and what are you getting already.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am


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