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

How to process file with variable lenght fields


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

New User


Joined: 06 Nov 2010
Posts: 24
Location: NYC

PostPosted: Wed Nov 17, 2010 3:48 am
Reply with quote

Hello,

I'm looking for idea how to process record with variable field lengs.
Record example:
abs12 xcd23456 xz1 dfn243ntbr

Fields are different in the size and number of fields can be different as well, so using PARSE doen't looks as a good idea. There is a space charachter in between fields and file has only a couple of records.

Can some one through good idea how to process it in the REXX, by process I mean to separate every field from the record to a veriable (fld.1, fld.2, fld.3 ....)

Thank you.
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: Wed Nov 17, 2010 4:12 am
Reply with quote

Hello,

Quote:
so using PARSE doen't looks as a good idea.
Why not?

Read here and notice the similarity. . .
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A380/5.1

Possibly there is something i am missing?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 17, 2010 12:34 pm
Reply with quote

If you can not understand how PARSE works, then look at using WORDS and WORD.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top