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

Answer Posted / sathish

//JOB CARD
//S1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
ABCDEFGH
/*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,NODETAIL,HEADER1=(1:1,2,/,1:3,2,/,1:5,2,/,1:7,2)
/*

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the positional and keyword parameters? Give examples.

712


How do you overcome this limitation ?

698


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

711


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

777


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

1667






How does jcl act on a cobol code?

659


Explain the function of dd name parameter with a 2 part structure; audit.report?

898


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

786


List the various advantages of using jcl language?

852


what is “Cond= even” and “Cond=only”?

743


Explain the function of //jcllib statement?

708


Mention the types of job control statements?

687


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1485


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

718


Explain the purpose of dd * statement in jcl?

643