how to extract a portion (e.g. fields 10 - 20) of a record



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

how to extract a portion (e.g. fields 10 - 20) of a record

Postby ISPFTSOJCL » Fri Feb 26, 2021 5:33 am

how to extract a portion (e.g. fields 10 - 20) of a record and send just that portion to a new dataset?
ISPFTSOJCL
 
Posts: 1
Joined: Fri Feb 26, 2021 5:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to extract a portion (e.g. fields 10 - 20) of a reco

Postby Robert Sample » Fri Feb 26, 2021 8:49 am

What is a "field"? If you meant bytes, say bytes. Otherwise you need to define the starting byte and length of what you want to copy because mainframes work with records and not fields.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: how to extract a portion (e.g. fields 10 - 20) of a reco

Postby enrico-sorichetti » Fri Feb 26, 2021 2:37 pm

DO NOT POST THE SAME QUESTION ON DIFFERENT FORUMS AT THE SAME TIME

the people answering there are the same answering here
https://ibmmainframes.com/viewtopic.php?p=351444#351444

decide where you want to carry on the discussion

the other topic will be deleted by a moderator
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-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post