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

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
ISPFTSOJCL
Posts: 1
Joined: Fri Feb 26, 2021 5:28 am
Skillset: jcl
Referer: google

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?

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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.

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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


  • Similar Topics
    Replies
    Views
    Last post