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

Give the syntax of job specifying jcl statement.

714


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.

2089


Explain dfsort utility?

856


which parameter is used to check the syntax of a jcl without executing it?

903


How to pass the parameter in parm using linkage section ? (syntax)?

747






what is use of disp parameter in dd statement?

740


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1887


what are the types of abends that occur on job failure? And explain the possible causes of these

1222


what happens in conversion stage in job processing?

822


Is it possible to code instream data in a PROC?

855


How gdg are concatenated?

756


Name the parameters which can be used to limit the number of records written to a sysout dataset?

733


what is use of dsn parameter in dd statement?

762


Is condition checking possible in jcl? If yes, how?

843


what is SOC4 error?

826