View previous topic :: View next topic
|
Author |
Message |
mainframe_techie
New User
Joined: 15 Jul 2007 Posts: 23 Location: India
|
|
|
|
Hi,
i am creating some datasets through rexx,based on some input criteria.
When I am creating those, I need to check if the length of those datasets is more then 35, if it is then I need to write that in a separate file.
Can this be done through rexx ??
Thanks,
mainframe_techie |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yes. Look at the LENGTH function. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
So what are you saying here, if the record is more than 35 bytes long then the record should be written to a seperate file,
or
If any record is greater than 35 bytes then the whole file should be written to a different file than one with all records LE 35.
If so, what if only the last record to be written is GT 35 ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Once created, what will be the use of these files?
If we better understand what you need to accomplish, we will be able to offer better suggestions. |
|
Back to top |
|
|
|