Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Unload with CONSTANT operator hiccup

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

New User


Joined: 10 Dec 2010
Posts: 96
Location: Massachusetts

PostPosted: Mon Jan 17, 2011 10:58 pm    Post subject: Unload with CONSTANT operator hiccup
Reply with quote

Code:

UNLOAD                                       
   DELIMITED COLDEL '|'                       
   UNLDDN(SYSREC02)                           
   PUNCHDDN(SYSFMT02)                         
   TABLESPACE(DAAVEND.SVEND07)               
   FROM TABLE(DAAVEND.PAYEE)                 
    (LEGACY_VEND_NR, CONSTANT 'P',           
     ACH_ROUTING, ACCT_NR, TAX_CODE, TAX_DATE)
   SHRLEVEL(CHANGE)                           
   ISOLATION(CS) 


i do the above and i get this error. looks correct to me :
Code:

DSNU005I    017 12:20:12.42 DSNUGPRS -   UNLOAD                               
DSNU005I    017 12:20:12.42 DSNUGPRS -      DELIMITED COLDEL '|'             
DSNU005I    017 12:20:12.42 DSNUGPRS -      UNLDDN(SYSREC02)                 
DSNU005I    017 12:20:12.42 DSNUGPRS -      PUNCHDDN(SYSFMT02)               
DSNU005I    017 12:20:12.42 DSNUGPRS -      TABLESPACE(DAAVEND.SVEND07)       
DSNU005I    017 12:20:12.42 DSNUGPRS -      FROM TABLE(DAAVEND.PAYEE)         
DSNU005I    017 12:20:12.42 DSNUGPRS -       (LEGACY_VEND_NR, CONSTANT "P",   
DSNU082I    017 12:20:12.42 DSNUGPRS - INVALID KEYWORD - 'P'                 
DSNU005I    017 12:20:12.42 DSNUGPRS -        ACH_ROUTING, ACCT_NR, TAX_CODE,
DSNU005I    017 12:20:12.42 DSNUGPRS -      SHRLEVEL(CHANGE)                   


thank you in advance.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Jan 17, 2011 11:09 pm    Post subject: Reply to: Unload with CONSTANT operator hiccup
Reply with quote

in this case I tend to trust DB2 judgement more than Yours!

what does the manual say about the message ?
Back to top
View user's profile Send private message
singhju

New User


Joined: 01 Dec 2010
Posts: 25
Location: Gurgaon

PostPosted: Tue Jan 18, 2011 11:45 am    Post subject:
Reply with quote

Below is the information about the message in manual:
Code:
DSNU082I csect-name  INVALID KEYWORD kkkkkkkk                             
                                                                           
Explanation:                                                               
                                                                           
The given keyword was not recognized within the context of this control   
statement.                                                                 
                                                                           
System Action:                                                             
                                                                           
Utility processing is not initiated.                                       
                                                                           
User Response:                                                             
                                                                           
Correct the keyword, and resubmit the job.                                 
                                                                           
Severity:                                                                 
                                                                           
8 (error)                                                                 


But I am not able to figure out the exact reason.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Jan 18, 2011 2:58 pm    Post subject:
Reply with quote

You have omitted a field_name in front of the CONSTANT keyword, that probably triggered the error message.

Reference the DB2 Utilities manual for FROM TABLE elements syntax.
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 unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us