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
 
How to recieve week number from sysibm.sydummy in PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
ravi1

New User


Joined: 27 Apr 2006
Posts: 11

PostPosted: Fri Mar 13, 2009 12:39 pm    Post subject: How to recieve week number from sysibm.sydummy in PL1
Reply with quote

Hi

I have coded

Exec Sql

week(current date)
into :ws_week_num
from sysibm.sysdummy1;

I am not getting correct value 11 in whatever data type i choose to declare ws_week_num. I am getting zeroes.

Please suggest how to declare ws_week_num.

Note: I already tried the following
fixed bin(31,0)
pic '9999'.
fixed dec(3)

Ur suggestions needed.
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Mar 13, 2009 2:51 pm    Post subject:
Reply with quote

FIXED BIN(15) works for me.

Code:
DCL                   
  WEEK1 FIXED BIN(15);

Code:
EXEC SQL                                 
     SELECT WEEK(CURRENT DATE) INTO :WEEK1
           FROM SYSIBM.SYSDUMMY1;         
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm

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