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
Explain the jcl exec statement?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
Explain the function of the steplib dd statement?
what sort card you will use to copy the data from one dataset to another dataset?
What parameter directs the output of the job log dataset?
Explain the purpose of dd dummy statement?
Explain dd statement in jcl?
What is the function of //jcllib statement?
How can the disposition of sysout datasets be set for an entire jobstream?
what is DSN parameter and DISP parameter is used for?
What is the syntax of JCL statement?
How to submit a jcl from cics?
how do you access an uncataloged dataset in a jcl?
What is jcl in mainframe?
Which dd parameters are required?