Read data till a particular position in REXX.
Read data till a particular position in 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?
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?
-
- Global Moderator
- Posts: 828
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Read data till a particular position in REXX.
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
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
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
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Read data till a particular position in REXX.
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.
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.
-
- Global Moderator
- Posts: 828
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Read data till a particular position in REXX.
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
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
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
- Anuj Dhawan
- Founder
- Posts: 2806
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Read data till a particular position in REXX.
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.
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.
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