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 

file transfer

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Beswar
Beginner


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Tue Feb 04, 2003 7:49 pm    Post subject: file transfer Reply with quote

Hi

I would like to send a document to PC from the mainframe. I am using a job whcih executes FTP program. But I want to send the data in a tabdelimited form to the PC. Is there any way I can specify in the FTP step/or in the COBOl program to get a tabdelimited output.


Thanks in Advance

Thanks
Eswar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Feb 04, 2003 11:22 pm    Post subject: Reply with quote

Eswar,
You can use INREC/OUTREC feature of SORT utility.A value of x'05'(HT) translates to x'09' (HT) on the PC. The following DFSORT jcl will give you the
results.

Code:

//STEP0100 EXEC PGM=ICEMAN                           
//*                                                     
//SYSOUT   DD SYSOUT=*                                 
//SORTIN   DD DSN=YOUR INPUT FILE,
//            DISP=SHR     
//SORTOUT  DD DSN=YOUR OUTPUT TAB DELIMITED FILE,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(X,Y),RLSE)
//SYSIN   DD * 
  SORT FIELDS=COPY 
  OUTREC FIELDS=(01,20,      $ FIELD1
                X'05',       $ TAB CHARACTER   
                22,20,       $ FIELD2 
                X'05',       $ TAB CHARACTER
                ....
                POS,LENGTH)  $ LAST FIELD
/*


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Beswar
Beginner


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Wed Feb 05, 2003 10:06 am    Post subject: Reply with quote

Hi Kolusu,

Thank you very much you reply. You are very intelligent and very smart. very few people in the world are intelligent but very few are really willing to share their knoweldge to others. I think you are one among them. may god bless you in all your future endevors.

Once againg thanks for your help. Infact this will reduce manual intervention in our system, so that mainframe would take care automatically

Thanks
Eswar
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 -> Other Technical Topics 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