What the LRECL and RECFM of i/p and o/p files?
Is that first four records of the i/p to be converted to a row in the o/p and then the second four records of i/p file to second row in the o/p file... and so on?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Samuel,
Please start a NEW topic for your question. Show an example of your input records and what you expect for output. Give the relevant information (RECFM, LRECL, layout of input and output fields, etc).
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
What changes we need to do when input is a VB file with RL 84 and output file is having same RECFM *FB 100
It depends on what you're trying to do. Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file. If the input file can have duplicates, show that in your example.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
dave,
Thanks for the warning. Yes, I've noticed that shr_amar's posts are kind of "hit and run". If he provides the information I need, I'll try to help. If not, ...
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now do this kind of task more easily with the new RESIZE operator of DFSORT's ICETOOL. For example:
Code:
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//IN DD *
A
B
C
D
*
//OUT DD SYSOUT=*
//TOOLIN DD *
RESIZE FROM(IN) TO(OUT) TOLEN(100) USING(CTL1)
//CTL1CNTL DD *
INREC BUILD=(1,2)
OUTFIL FNAMES=OUT,OVERLAY=(1:1,100,SQZ=(SHIFT=LEFT,MID=C','))
OUT would have:
Code:
A,B,C,D,*
For complete details on the new functions for DFSORT and DFSORT's ICETOOL available with the Oct, 2010 PTF, see: