IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FIXED DEC(15,2) to PIC conversion in PLI


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10771
Location: italy

PostPosted: Wed Feb 19, 2014 6:01 pm
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: 2455
Location: Hampshire, UK

PostPosted: Thu Feb 20, 2014 2:30 am
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
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
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: 2455
Location: Hampshire, UK

PostPosted: Thu Feb 20, 2014 3:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Date conversion using SORT SYNCSORT 4
This topic is locked: you cannot edit posts or make replies. Write Character to Hexadecimal file w... COBOL Programming 8
No new posts Date Conversion Y2T to Y2W SYNCSORT 8
No new posts Date format conversion DFSORT/ICETOOL 4
No new posts EBCDIC to ASCII conversion help All Other Mainframe Topics 1
Search our Forums:

Back to Top