IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Include Table Column names in extract file.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rguhanath

New User


Joined: 16 Oct 2006
Posts: 81
Location: chennai

PostPosted: Mon Nov 07, 2011 2:08 pm
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: 8797
Location: Welsh Wales

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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 07, 2011 2:49 pm
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

Superior Member


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

PostPosted: Mon Nov 07, 2011 3:20 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:

Back to Top