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
Give the syntax of job specifying jcl statement.
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.
Explain dfsort utility?
which parameter is used to check the syntax of a jcl without executing it?
How to pass the parameter in parm using linkage section ? (syntax)?
what is use of disp parameter in dd statement?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
what are the types of abends that occur on job failure? And explain the possible causes of these
what happens in conversion stage in job processing?
Is it possible to code instream data in a PROC?
How gdg are concatenated?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
what is use of dsn parameter in dd statement?
Is condition checking possible in jcl? If yes, how?
what is SOC4 error?