on 09-15-2011 8:46 AM
Hi,
I have date stored as 15-09-2011 in DB Connect source system.
When i load to to datasource which is havinf CHAR 10 field the result is stored as 14.09.2011. - goes...
Now in standard DSO i have DATS field with length 8.
I want this data in YYYYMMDD format.
I utried using all consersion routines did not work.
I used below formula in transfer rule types
DATECONV( /BIC/Z_11, 'DDMMYYYY', '-' ) and also DATECONV( /BIC/Z_11, 'DDMMYYYY', '.' ) and DATECONV( /BIC/Z_11, 'DMY', '-' )
all possible ways did not work.
I also used belwo routine in transfer rule type:
Data : month(2) type c,
date(2) type c,
year(4) type c.
date = SOURCE_FIELDS(2).
month = SOURCE_FIELDS+3(2).
year = SOURCE_FIELDS+6(4).
Concatenate year MONTH Date into RESULT .
Not working.
Please suggest what to do now.
Regards
Zabi
Hi,
Please see if you can achieve your results through
start -
control panel---regional and language options--regional options
here you can see various date and time option.See making any changes helps you.
Thanks and regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try to put,
date = SOURCE_FIELDS+0(2).
It might not be causing the problem but you can still check this out. The best way to check is simply debug your code and see what values you are getting populated in each of the fields.
Regards,
Durgesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zabi,
Your routine looks good, it should give you the desired result.
I will suggest you debug the routine once, it will give you a fair idea what exactly are the values present in the declared variables.
Hope this helps.
Regards,
RahulM
Edited by: RahulM on Sep 15, 2011 3:05 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.