MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting a text file from mainframes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
psmadhusudhan
Beginner


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Tue Mar 11, 2008 3:49 am    Post subject: Getting a text file from mainframes Reply with quote

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 Sad 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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Mar 11, 2008 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message
psmadhusudhan
Beginner


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Tue Mar 11, 2008 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Mar 11, 2008 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
psmadhusudhan
Beginner


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Tue Mar 11, 2008 11:02 am    Post subject: Reply with quote

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
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Tue Mar 11, 2008 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue Mar 11, 2008 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Tue Mar 11, 2008 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
psmadhusudhan
Beginner


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Wed Mar 12, 2008 2:59 am    Post subject: Reply with quote

Thanks for your replies. Very Happy
_________________
Thanks
Madhu Sudhan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group