Quantcast
Channel: IBM Mainframe Computers Forums
Browsing all 9405 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

DB2 :: RE: Get correct date and time when current time is over 12 hrs

Author: balaji81_k Posted: Wed Oct 19, 2016 9:20 pm (GMT 5.5) Hi Rahul, Sorry it is missing in the post , actual query has the case statement . I break each field and even tried to cast the col2 as...

View Article


DB2 :: RE: Get correct date and time when current time is over 12 hrs

Author: Nic Clouston Posted: Wed Oct 19, 2016 9:25 pm (GMT 5.5) Why not cut and paste the real query - then people will be working with reality instead of something that is, basically, a figment of the...

View Article


Image may be NSFW.
Clik here to view.

DB2 :: RE: Get correct date and time when current time is over 12 hrs

Author: enrico-sorichetti Subject: Reply to: Get correct date and time when current time is over 12 hrs Posted: Wed Oct 19, 2016 9:57 pm (GMT 5.5) time to lock the topic, it is going...

View Article

SYNCSORT :: Sort records based on numeric field.

Author: Alks Subject: Sort records based on numeric field. Posted: Wed Oct 19, 2016 10:14 pm (GMT 5.5) Hi, I have a requirement where I have to sort the records based on the date difference.Code:ABC...

View Article

SYNCSORT :: RE: Sort records based on numeric field.

Author: RahulG31 Subject: Reply to: Sort records based on numeric field. Posted: Wed Oct 19, 2016 10:53 pm (GMT 5.5) Your data is NOT PACKED. Since, you didn't use code tags, the spaces between fields...

View Article


Image may be NSFW.
Clik here to view.

DB2 :: RE: Get correct date and time when current time is over 12 hrs

Author: Rohit Umarjikar Posted: Wed Oct 19, 2016 11:01 pm (GMT 5.5) I think, we should lock this topic and let the TS open a new one with right and complete query instead of piece...

View Article

Image may be NSFW.
Clik here to view.

SYNCSORT :: RE: Sort records based on numeric field.

Author: Rohit Umarjikar Posted: Wed Oct 19, 2016 11:07 pm (GMT 5.5) Please learn to use appropriate BBCodes during your next post,If you are a Beginner to DFSORT then , please join IBM MAINFRAME &...

View Article

Image may be NSFW.
Clik here to view.

DB2 :: RE: Get correct date and time when current time is over 12 hrs

Author: enrico-sorichetti Posted: Wed Oct 19, 2016 11:32 pm (GMT 5.5) done_________________cheers enrico When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my...

View Article


DB2 :: Low values Results from VARCHAR FORMAT

Author: balaji81_k Subject: Low values Results from VARCHAR FORMAT Posted: Thu Oct 20, 2016 1:18 am (GMT 5.5) Hi Everyone, I apologize for my last post as i didnt furnish complete Query in it , but...

View Article


Image may be NSFW.
Clik here to view.

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: enrico-sorichetti Subject: Reply to: Low values Results from VARCHAR FORMAT Posted: Thu Oct 20, 2016 1:32 am (GMT 5.5) the result posted shows ( repeated twice ) 10 bytes for the first date a...

View Article

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: balaji81_k Posted: Thu Oct 20, 2016 1:35 am (GMT 5.5) Hi Enrico, Do we need to use STRIP or TRIM or any other function to avoid this because we need this seperator "|" between the dates ....

View Article

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: balaji81_k Posted: Thu Oct 20, 2016 1:45 am (GMT 5.5) Hi Enrico, I coded this wayCode: SELECT CAST(VARCHAR_FORMAT(CURRENT_DATE,'YYYY.MM.DD') AS CHAR(10)), SUBSTR('|',1,1),...

View Article

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: RahulG31 Subject: Reply to: Low values Results from VARCHAR FORMAT Posted: Thu Oct 20, 2016 2:25 am (GMT 5.5) balaji81_k, I ran both of your queries and both of them gave me same result and...

View Article


DB2 :: Comparing Decimal and CHAR columns

Author: rakesh17684 Subject: Comparing Decimal and CHAR columns Posted: Thu Oct 20, 2016 2:33 am (GMT 5.5) Hello, I am trying to create a query which will fetch me rows which has matching values...

View Article

Image may be NSFW.
Clik here to view.

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: enrico-sorichetti Subject: Reply to: Low values Results from VARCHAR FORMAT Posted: Thu Oct 20, 2016 2:39 am (GMT 5.5)Quote:And, I am Not able to comprehend enrico's reply. I was trying to...

View Article


DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: balaji81_k Posted: Thu Oct 20, 2016 2:39 am (GMT 5.5) Hi Rahul, I am running SPUFI from Mainframe as well as using QMF from Windows session , but i am able to see low values in both not sure...

View Article

DFSORT/ICETOOL :: RE: How to delete second instance from Flat file in...

Author: Arun Raj Subject: Reply to: How to delete second instance from Flat file in SORT/IceTool Posted: Thu Oct 20, 2016 2:58 am (GMT 5.5) I was assuming the "delete" in itself is not happening when...

View Article


Image may be NSFW.
Clik here to view.

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: Rohit Umarjikar Posted: Thu Oct 20, 2016 3:01 am (GMT 5.5)Code:SELECT VARCHAR_FORMAT(CURRENT_DATE,'YYYY.MM.DD')  ||'|'|| VARCHAR_FORMAT(CURRENT_DATE,'YYYY/MM/DD')  || '|'  FROM SYSIBM.SYSDUMMY1...

View Article

DB2 :: RE: Low values Results from VARCHAR FORMAT

Author: balaji81_k Posted: Thu Oct 20, 2016 3:01 am (GMT 5.5) Hi Enrico, I am trying to print 10 along with the SQL query but i am able to see its equivalent only by giving HEX on , can you please...

View Article

DB2 :: RE: Comparing Decimal and CHAR columns

Author: Arun Raj Posted: Thu Oct 20, 2016 3:03 am (GMT 5.5) post the sql you are trying to execute along with the sample data?_________________Arun...

View Article
Browsing all 9405 articles
Browse latest View live