Alignment of Data from perticular column



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Alignment of Data from perticular column

Postby abhiman » Tue Oct 21, 2008 7:08 pm

Hi All,

I am having one PS file containing near about 2500 records in sorted manner

starting from column 1.

I want to align/move this to column 12.

How can I do this?

Please suggest me for this.

Thanking you,
Abhiman
abhiman
 
Posts: 9
Joined: Mon Jul 07, 2008 4:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Alignment of Data from perticular column

 

Re: Alignment of Data from perticular column

Postby Bill Dennis » Wed Oct 22, 2008 12:37 am

Do you want an ISPF EDIT solution? Use the SHIFT COLS block command.


))1101 Shift the lines in this block 11 places
000002 from column 1
))0003 to column 12
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Alignment of Data from perticular column

Postby dick scherrer » Wed Oct 22, 2008 2:13 am

Hello,

If this is a requirement you will need to do repeatedly and the requirement calls for cobol, a very simple cobol program would read the current iniput and write to a file that has 11 bytes of filler before the data.

You could also do this with your sort product.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post