I have a input file.
Data like: ABCDEFGH....
i want out put file like
AB
BC
CD
DE....How can do this??

Answer Posted / prakash

using inrec in sort utility , we can perform it.
//sysih dd *
sort fields = copy
inrec fields = (10:1,2, 13:2,2, 16:3,2)

(or)

using reference modification in cobol.

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a jobs execution priority be modified?

751


How to do automated restart when a job abend?

798


What is notcat 2 - gs?

946


Can I share my data with other jobs? How?

680


Can an individual step be restricted from using all the jobs allowed cpu time?

1021






My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1999


how you will the direct the data to spool using sysout option?

1775


What are the parameter we cannot use in procedure?

650


How jcl is used for testing batch programs?

733


what is JCL?

708


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1494


Where can program checkpoints be stored for use in a restart?

862


Which dd parameters are required?

708


Where & How Do You Code Identifier In Jcl?

710


Is their any set of rules for dd? Explain.

675