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
 
What is use of UNSPEC builtin function in PL/I?

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

New User


Joined: 28 Feb 2007
Posts: 6
Location: chennai

PostPosted: Thu Mar 01, 2007 1:04 pm    Post subject: What is use of UNSPEC builtin function in PL/I?
Reply with quote

What is the use of unspec builtin fucntion in pl1?
Back to top
View user's profile Send private message

letmeknow

New User


Joined: 10 Dec 2005
Posts: 5
Location: chennai

PostPosted: Thu Mar 01, 2007 1:56 pm    Post subject:
Reply with quote

UNSPEC(varable)

UNSPEC returns a bit string that is the internal coded form of 'varaible' .

'variable' may be Scalar, array, structure, or union expression.


..krishna
Back to top
View user's profile Send private message
hemachandran27

New User


Joined: 28 Feb 2007
Posts: 6
Location: chennai

PostPosted: Thu Mar 01, 2007 6:35 pm    Post subject:
Reply with quote

Thanks a lot krishna.Whether it's a psuedo varaiable
Back to top
View user's profile Send private message
letmeknow

New User


Joined: 10 Dec 2005
Posts: 5
Location: chennai

PostPosted: Wed Mar 07, 2007 2:15 am    Post subject: Re: What is use of UNSPEC builtin function in PL/I?
Reply with quote

Check these examles...

1.
DCL BYTE CHAR(1);
IF UNSPEC(BYTE) = (8)'1'B
THEN WRITE FILE(NOS) KEYFROM(NEWNO) FROM(NAME);

2.

DCL MAXSTOR FIXED BINARY (31,0);
UNSPEC(MAXSTOR)='00000000'B;

hope it will clear ur doubt..

...krishna
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 What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am

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