Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
FIXED DEC(15,2) to PIC conversion in PLI

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

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Wed Feb 19, 2014 4:47 pm    Post subject: FIXED DEC(15,2) to PIC conversion in PLI
Reply with quote

Dear Team,

I have a requirement wherein I need to move a variable of FIXED DEC(15,2) to PIC clause.

I am new to PLI. I have searched for this on Google, but could not get much information.

It would be really great if someone can help me with this.

Thanks a lot in advance.
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10632
Location: italy

PostPosted: Wed Feb 19, 2014 6:01 pm    Post subject: Reply to: FIXED DEC(15,2) to PIC conversion in PLI
Reply with quote

if You are new to pl/1 why do You list it as skill ???

what about a good/ole/plain/simple assignment statement

Code:
pic_var = othr_format_var ;


providing a proper skills description
will make easier to answer using the proper terminology and the needed detail.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2247
Location: Hampshire, UK

PostPosted: Thu Feb 20, 2014 2:30 am    Post subject: Reply to: FIXED DEC(15,2) to PIC conversion in PLI
Reply with quote

And why use Google? Google is not the PL/1 manual which is easily accessible on the internet or on many forums.
Back to top
View user's profile Send private message
Kunal Surpurkar

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Thu Feb 20, 2014 11:45 am    Post subject:
Reply with quote

Hello,

I listed PLI as a skill because I started working on it.

And, I assigned FIXED DEC to PIC using assignment statement, but, the values are not being moved to PIC.
Back to top
View user's profile Send private message
Kunal Surpurkar

New User


Joined: 15 Nov 2012
Posts: 47
Location: India

PostPosted: Thu Feb 20, 2014 2:18 pm    Post subject:
Reply with quote

Hello,

Here's what I am getting when I am assigning FIXED DEC to PIC.

Code:
D =-404040400171752
D =-404040404038184
D =-404040404002018
D =-404040404003025
D =-404040404018384
D =-404040400103052
D =-404040404010344
D =-404040404010344
D =-404040404010344
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2247
Location: Hampshire, UK

PostPosted: Thu Feb 20, 2014 3:58 pm    Post subject: Reply to: FIXED DEC(15,2) to PIC conversion in PLI
Reply with quote

'Skill' means you have a reasonable level of competence. As you are just starting you have zero level of competence as is demonstrated by your problem.

Now, please show the declarations you are using for your FIXED DEC and PIC variables and the assignment statements. Please use the code tags for you code snippets (use the POSTREPLY button)
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 String to ASCII conversion JPLMARTINS COBOL Programming 4 Sun Sep 29, 2019 12:00 am
No new posts Pack to Unpack conversion for sending... A_programmers COBOL Programming 13 Wed Sep 11, 2019 10:46 pm
No new posts Alphanumeric to Packed Decimal Conver... Vijay_Sirisha COBOL Programming 2 Mon May 27, 2019 2:52 am
No new posts data conversion error maxsubrat PL/I & Assembler 4 Thu May 09, 2019 10:57 pm
No new posts File format conversion prino DFSORT/ICETOOL 22 Thu Feb 21, 2019 11:32 am

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