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

Answer Posted / mdv

Two step process:

1.

Input file:

ABCDEF

//sysih dd *
sort fields = copy
outrec fields = (1,2,78X,2,2,78X,3,2,78X,4,2,78X,5,2,78X)

Step 1 output file will be:

ABBCCDDEEF


2.

//STEP EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
ABBCCDDEEF

//OUT DD DISP=OLD,DSN=file-FB_lrec/80
//TOOLIN DD *
RESIZE FROM(IN) TO(OUT) TOLEN(80)


OUT DD dataset will have the required.

Thanks

HTH

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How dummy is used in jcl?

656


Is their any limit for data sets?

717


Explain the function of dd name parameter with a 2 part structure; audit.report?

910


What is NOTCAT ?

755


Explain how can a stopped job be started again?

642






A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

743


How to do automated restart when a job abend?

797


What is use of restart and how to use it?

781


How to override loadlib?

1436


How to submit a jcl from cics?

670


Explain dd statement in jcl?

654


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1967


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

817


Explain how can return codes be tested before execution of a job step?

839


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

639