Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / prakash

using inrec in sort utility , we can perform it.
//sysih dd *
sort fields = copy
inrec fields = (10:1,2, 13:2,2, 16:3,2)

(or)

using reference modification in cobol.

Is This Answer Correct ?    7 Yes 6 No

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

Answer / 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

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

Answer / sathish

//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:2,2,/,1:3,2,/,1:4,2)
/*

Is This Answer Correct ?    1 Yes 0 No

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

Answer / 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

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

Answer / muttaiah

@satish:

YOu have 2 posts continuously, can you tell us all which
one will work(or both) fine.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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

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

Answer / muttaiah

@Posted Person:
Can you exactly tell me what is your requirement so that i
can try to provide you a solution.

1rec: every 2 char's you want to write a records.

because As far as my knowledge there is no such utility to
get data in such a way. You have to write a cobol program
and use Joblib stmt. In order to accomplish this request.

If you want the cobol program let me know??

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

how to resolve soc-7 ? please tell me

3 Answers   IBM,


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

0 Answers  


If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?

1 Answers  


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


how can i use the parameters decalred in main pgm in sub pgm

2 Answers   TCS,


Explain the purpose of the dd keylen parameter?

0 Answers  


Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00

2 Answers  


what are the ways of passing data to a cobol program from jcl?

1 Answers   IBM,


A dd statement consists of 4 fields. Name them?

0 Answers  


what is the purpose of SYSOUT parameter in the DD statement?

1 Answers  


what is the meaning of 'sysin dd dummy'

3 Answers  


Categories