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
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How do you submit a job for execution?
How jcl work to handle various input output file operations?
When space is allocated for an output dataset, what units can be used?
What are the jcl procedures?
how you can access an uncataloged dataset in a JCL?
What parameter directs the output of the job log dataset?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
Explain the job statement in jcl?
What is multithreading in jcl?
What is concatenating?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
Differentiate between addressing mode and run mode.
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What is the maximum length of a single line of jcl?