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
 
Can REXX identify the Data Type

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Wed Jul 16, 2008 7:27 pm    Post subject: Can REXX identify the Data Type
Reply with quote

Hi All,

I just want to know, if i give the field position and the length of that field, can rexx identify the data type of that field.
And can anyone tell what the below statement means -

Quote:
alloc dd(xmitnote) reu new catalog
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Jul 16, 2008 7:42 pm    Post subject: Re: Can REXX identify the Data Type
Reply with quote

Look at the DATATYPE function.

saurabh39 wrote:
And can anyone tell what the below statement means -

Quote:
alloc dd(xmitnote) reu new catalog


It's a TSO (or IDCAMS) command. Allocate. "Allocate storage to the DD name XMITNOTE reusing any current allocation with a disposition of NEW and CATALOG".
Back to top
View user's profile Send private message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Sun Jul 20, 2008 6:58 pm    Post subject:
Reply with quote

Hi Kevin,

Thanks for reply......
Regarding my first question,
I want the REXX to return if the field is PD or ZD or Binary.Can DATATYPE do it.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 21, 2008 12:39 am    Post subject:
Reply with quote

Hello,

Did you click on the link to "DATATYPE" provided by Kevin?

If not, do so.

If you find somethng there you do not understand, post what you found and your question about it.
Back to top
View user's profile Send private message
saurabh39
Warnings : 1

Active User


Joined: 11 Apr 2008
Posts: 144
Location: Jamshedpur

PostPosted: Mon Jul 21, 2008 9:59 am    Post subject:
Reply with quote

Hi,

I went through it..........Binary can be identified......but i am confused how REXX will differentiate between alphanumeric(having numbers),characters(storing number),PD,ZD...etc.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Jul 21, 2008 1:03 pm    Post subject: Reply to: Can REXX identify the Data Type
Reply with quote

review Your understanding of REXX objects,
everything is a string,

why not run Yourself a few tests ....
Code:

say "datatype('ABCDE')   is :" datatype('ABCDE')
say "datatype('12345')   is :" datatype('12345')
say "datatype('123.45')  is :" datatype('123.45')
say "datatype('0123c'x)  is :" datatype('0123c'x)

an read the manual
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJOSE20
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 21, 2008 7:46 pm    Post subject:
Reply with quote

Hello,

Quote:
how REXX will differentiate between alphanumeric(having numbers),characters(storing number),PD,ZD...etc.
REXX will not directly give you this. . . Also, i do not understand what these "alphanumeric(having numbers),characters(storing number)" mean?

If you were able to get the "cobol" field-type, how would it be used?
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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