Read data till a particular position in REXX.

This Forum is for the guests or the users who are not registered on this board. This part allows guests to post in.
Rexx

Read data till a particular position in REXX.

Post by Rexx »

Hi,

I have a dataset of length 132. For a requirement, I want to read the contents only upto 80th column from it. Is there anyway to do it using ISPF edit macros/REXX?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Read data till a particular position in REXX.

Post by enrico-sorichetti »

since zOS I/O is record oriented every read will return a full record
then You are free to process as many bytes as You need
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Read data till a particular position in REXX.

Post by Anuj Dhawan »

I'm not a REXX expert however, can substring() be of some use here, no - Enrico?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Read data till a particular position in REXX.

Post by enrico-sorichetti »

Yes Anuj,

but ...
a generic question just deserves a technically correct but generic answer

really these questions make me wonder if the TS has ever read a manual on the subject ;)
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Rexx1

Re: Read data till a particular position in REXX.

Post by Rexx1 »

Thanks substring() has helped me.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Read data till a particular position in REXX.

Post by Anuj Dhawan »

Thanks for the feedback - good luck.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “You are a Guest.”