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

Checking Length of datasets is REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mainframe_techie

New User


Joined: 15 Jul 2007
Posts: 23
Location: India

PostPosted: Sun Jul 15, 2007 6:44 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sun Jul 15, 2007 8:59 am
Reply with quote

Yes. Look at the LENGTH function.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jul 15, 2007 9:40 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Jul 15, 2007 10:09 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top