linux copy line sequential file to relative file

rudi999

New Member
Joined
May 12, 2020
Messages
1
Reaction score
0
Credits
15
I want to copy in linux a line sequential file to a file with relative organization with a fixed record length.
the line sequential file could have any record length , but the relative file must have a fixed record length.
I did this in cobol where it worked perfectly. can anybody give me a linux command or script to do the same in linux?


SELECT INP1 ASSIGN TO DISK
ACCESS IS SEQUENTIAL
ORGANIZATION IS LINE SEQUENTIAL.
SELECT OUT1 ASSIGN TO DISK ACCESS MODE IS RANDOM
ORGANIZATION IS RELATIVE
RELATIVE KEY OUT1-KEY
LOCK MODE IS AUTOMATIC
FILE STATUS IS OUT1-STATUS .
 

Staff online


Top