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

What is use of UNSPEC builtin function in PL/I?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top