I have a input file.
Data like: ABCDEFGH....
i want out put file like
AB
BC
CD
DE....How can do this??

Answer Posted / muttaiah

MDV:

If you are using this stmt
outrec fields = (1,2,78X,2,2,78X,3,2,78X,4,2,78X,5,2,78X)

Your LRECL for O/p File would 400

AB followed by 78 blanksBCfollowed by 78blanks....

Did you try the code which you placed there...

I'm not sure of 2nd step..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is DD statement is used in JCL?

676


What is one line to pass PARM from JCL to COBOL?

520


How jcl work to handle various input output file operations?

654


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

741


What is job control language?

605






what are the various stages of job processing?

736


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

778


Give the syntax of job specifying jcl statement.

634


How can a jobs execution priority be modified?

793


Is condition checking possible in jcl?

710


What are s0c1, s0c4, s0c5, s0c7 and socb?

695


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1726


which utility is used a dummy utility?

785


What is the purpose of dd dummy statement?

942


Explain how can the attributes of one sms dataset be copied to another dataset?

703