|
|
| Author |
Message |
saurabh39
New User
Joined: 11 Apr 2008 Posts: 32 Location: Jamshedpur
|
|
|
|
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 |
|
 |
References
|
Posted: Wed Jul 16, 2008 7:27 pm Post subject: Re: Can REXX identify the Data Type |
 |
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3081 Location: Charlotte,NC USA
|
|
|
|
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 |
|
 |
saurabh39
New User
Joined: 11 Apr 2008 Posts: 32 Location: Jamshedpur
|
|
|
|
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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7471 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
saurabh39
New User
Joined: 11 Apr 2008 Posts: 32 Location: Jamshedpur
|
|
|
|
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 |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2565 Location: italy
|
|
|
|
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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7471 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
|
|