|
View previous topic :: View next topic
|
| Author |
Message |
ksathishkumar4u Currently Banned New User
Joined: 29 May 2006 Posts: 0
|
|
|
|
Hi,
I want to delate a particular number of columns (say column 20 to 25) in a PS file .how it can ve done using JCL?
Regards
sathish |
|
| Back to top |
|
 |
dneufarth
Active User

Joined: 27 Apr 2005 Posts: 421 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
try using SORT
and the OUTREC control stmt |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
sathish,
You can "remove" columns using DFSORT, but exactly how depends on the RECFM and LRECL of your input file. For example, if you input file has RECFM=FB and LRECL=80, you could use a DFSORT job like the following to remove columns 20-25:
| Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/80)
//SORTOUT DD DSN=... output file (FB/74)
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1,19,26,55)
/*
|
|
|
| Back to top |
|
 |
|
|