move 65535 to a variable which is declared as pic 9(04) binary.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Chaitnaya
Registered Member
Posts: 17
Joined: Thu Jan 16, 2014 4:48 pm

move 65535 to a variable which is declared as pic 9(04) binary.

Post by Chaitnaya »

I want to move 65535 to a variable which is declared as pic 9(04) binary. Can anyone please guide me about the movement ?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: move 65535 to a variable which is declared as pic 9(04) binary.

Post by Robert Sample »

What do you need guidance on? The actual value stored in the receiving variable will depend upon the compile options in effect and whether or not you specified COMP or COMP-5 for the receiving variable.
Chaitnaya
Registered Member
Posts: 17
Joined: Thu Jan 16, 2014 4:48 pm

Re: move 65535 to a variable which is declared as pic 9(04) binary.

Post by Chaitnaya »

Thanks for your reply Robert. I think, I confused myself when I ask that.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”