View previous topic :: View next topic |
Author |
Message |
psmadhusudhan Beginner

Joined: 28 Nov 2006 Posts: 143 Topics: 48
|
Posted: Tue Mar 11, 2008 3:49 am Post subject: Getting a text file from mainframes |
|
|
Hi,
I have FB sequential file. I need to generate a text file which will be true copy of this file. Can anybody tell me how can it be achieved.
I am unable to find to correct topic under which this should be posted. So I am posting it under JCL. Sorry for it Plese help me with my doubt. _________________ Thanks
Madhu Sudhan |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Mar 11, 2008 5:26 am Post subject: |
|
|
What do you mean by 'text' file? What do you mean by 'true' copy?
By my definition of 'true' copy I would use IEBGENER to copy the file in batch.
I f the file contains data in packed decimal and you want it in zoned decimal then you can use a SORT program or write your own program. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
psmadhusudhan Beginner

Joined: 28 Nov 2006 Posts: 143 Topics: 48
|
Posted: Tue Mar 11, 2008 5:52 am Post subject: |
|
|
Quote: |
What do you mean by 'text' file?
|
I want output as .txt file
Quote: |
What do you mean by 'true' copy?
|
It means there should be no formatting of the data, just the data need to be copied into .txt file.
I hope u r clarified now. _________________ Thanks
Madhu Sudhan |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Mar 11, 2008 8:42 am Post subject: |
|
|
Why not just rename the file? Or copy it to a new dataset with a name ending in .TXT. Not that it means anything on the mainframe - it is just a name - no relation to the type of data in the file. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
psmadhusudhan Beginner

Joined: 28 Nov 2006 Posts: 143 Topics: 48
|
Posted: Tue Mar 11, 2008 11:02 am Post subject: |
|
|
I just dont understand how can u just rename a FB sequential file in mainframes and get a .txt file. Could u pls explain in detail.
In a application consisting of lot of jobs I am getting output reports as an FB seqential file. Business wants output of the process as text file and this process should also be done through a job. I think now u had understood my requirements clearly. If u can please provide me the solution. Somebody please help me. _________________ Thanks
Madhu Sudhan |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Tue Mar 11, 2008 11:08 am Post subject: |
|
|
psmadhusudhan wrote: | I just dont understand how can u just rename a FB sequential file in mainframes and get a .txt file. Could u pls explain in detail.
In a application consisting of lot of jobs I am getting output reports as an FB seqential file. Business wants output of the process as text file and this process should also be done through a job. I think now u had understood my requirements clearly. If u can please provide me the solution. Somebody please help me. |
.TXT has no meaning on the mainframe! |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Tue Mar 11, 2008 11:16 am Post subject: |
|
|
I'm guessing that your user wants to read (via Notepad or whatever) a .txt file on their PC that is a copy of the FB mainframe file. Run a file transfer program (whatever your shop uses) to "receive" a PC file from a mainframe file. _________________ ....Terry |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Tue Mar 11, 2008 11:20 am Post subject: |
|
|
If your FB sequential file has binary or packed decimal data in it then you have to convert that to character data with a separate sign (depending on the users needs either before or after the digits). You can use sort or a simple cobol program to do this and it has been discussed many times before. |
|
Back to top |
|
 |
psmadhusudhan Beginner

Joined: 28 Nov 2006 Posts: 143 Topics: 48
|
Posted: Wed Mar 12, 2008 2:59 am Post subject: |
|
|
Thanks for your replies.  _________________ Thanks
Madhu Sudhan |
|
Back to top |
|
 |
|
|