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 

Platinum Fastunload

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


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Apr 05, 2010 4:42 pm    Post subject: Platinum Fastunload Reply with quote

Hi,
I was trying to unload data from Image Copy of a table using platinum fast unload util. I got the below error Did anybody have any clue? Not sure for an image copy input format, does the conversion allows from varchar to char.
Code:

FASTUNLOAD             
DISPLAY-STATUS 1000000,T
INPUT-FORMAT IMAGECOPY 
DATE-FORMAT ISO         
IO-BUFFERS 60           
LOAD-CONTROL DB2LOAD   
OUTPUT-FORMAT EXTERNAL 
SHRLEVEL IGNORE         
SORTSIZE 8M             
SORTNUM 6               
ESTIMATED-ROWS 10000000   
SELECT                   
 PRTN_VLU_NO            ,
 PYMNT_ID               ,
 PAY_AGT_ID             ,
 PAY_RPT_TSTMP          ,
 PAY_RPT_TAG_NO         ,
 PAY_DTL_BTC_SEQ_NO     ,
 PAY_LN_TAG_NO          ,
 PAY_MULTI_TXN_CD       ,
 DATA_SRC_CD            ,
 UNIT_OFC_ID            ,
 BLLR_ID                ,
 TXN_SRC_CD             ,                             
 SUBSTR(CLNT_TXN_NO,1,30)                             
FROM PSSDBAP.PSIPAYT                                 
WHERE PRTN_VLU_NO = 3                                 
ORDER BY "PRTN_VLU_NO", "PAY_AGT_ID", "PAY_RPT_TSTMP"
;                                                     



I was trying to convert the column CLNT_TXN_NO from Varchar(30) to Char(30) to enable me to load the file on Linux server. Any ideas. Able to unload without SUBSTR. My error as follows.
Code:

PFU0077E - FORMAT ERROR IN SPECIFICATION OF COLUMN NAME -                   
           MAX SIZE=18, MIN SIZE=1                                           
 SUBSTR(CLNT_TXN_NO,1,30)                                                   
1...5....10...15...20...25...30...35...40...45...50...55...60...65...70...75
PFU0011E - SYNTAX ERROR ON OR NEAR LOCATION 008                             
                                                                             
PFU0075E - INVALID SELECT STATEMENT - SEE DOCUMENTATION                     
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Mon Apr 05, 2010 5:11 pm    Post subject: Reply with quote

schintala,

Isn't it a clear issue ? how is CLNT_TXN_NO defined? does it have 30 bytes? looks like it is only 18 bytes at max.

Correct the following statement to use CHAR

CHAR(CLNT_TXN_NO)

kolusu


Last edited by kolusu on Mon Apr 05, 2010 7:41 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Apr 05, 2010 5:29 pm    Post subject: Reply with quote

Kolusu,
Thank you so much for the quick reply. No luck. It gives same error message. It complaing about the column name of 18 bytes max.

Code:

PFU0077E - FORMAT ERROR IN SPECIFICATION OF COLUMN NAME -                   
           MAX SIZE=18, MIN SIZE=1                                         
 CHAR(CLNT_TXN_NO,1,30)                                                     
1...5....10...15...20...25...30...35...40...45...50...55...60...65...70...75
PFU0011E - SYNTAX ERROR ON OR NEAR LOCATION 006                             
                                                                           
PFU0075E - INVALID SELECT STATEMENT - SEE DOCUMENTATION                     
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Apr 05, 2010 6:19 pm    Post subject: Reply with quote

Possibly i am missing something. . .

How does one use 30 bytes of an 18-byte value?
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Mon Apr 05, 2010 7:40 pm    Post subject: Reply with quote

schintala,

Yikes ! I made a mistake with the CHAR function syntax . Sorry about that. It should be just
Code:

CHAR(CLNT_TXN_NO)


My only guess is that you spelled the name of the column wrong and the utility assumed the whole thing as a single column name and is complaining about the length of the column name exceeding 18 characters. Make sure that you have the right column name

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Tue Apr 06, 2010 9:14 am    Post subject: Reply with quote

Kolusu,

Looks like platinum fastunload utility for input-format with Image Copy not able to recognize to convert the column from one data type to another. I tried with your suggestion it still gives same result. Thank you for your time. I'll keep posted for the benifit of others if I found any solution.

Thanks
Back to top
View user's profile Send private message
jim haire
Beginner


Joined: 30 Dec 2002
Posts: 140
Topics: 40

PostPosted: Tue Apr 06, 2010 1:56 pm    Post subject: Reply with quote

Try Table as the Input-Format instead of Imagecopy.
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 -> Database 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