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

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

1933


How do you submit a job for execution?

640


How jcl work to handle various input output file operations?

659


When space is allocated for an output dataset, what units can be used?

751


What are the jcl procedures?

647






how you can access an uncataloged dataset in a JCL?

656


What parameter directs the output of the job log dataset?

766


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1667


Explain the job statement in jcl?

653


What is multithreading in jcl?

941


What is concatenating?

637


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

711


Differentiate between addressing mode and run mode.

615


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

938


What is the maximum length of a single line of jcl?

829