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: 10231
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
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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