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 

Search found 9 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 4:30 pm   Subject: Getting Cr at the end of the file
Frank

Got your point. Since I won't have any negative values in the file, si I guess the above solution should work. Thanks a ton for your help and time on this.

Best Regards
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 4:25 pm   Subject: Getting Cr at the end of the file
Terry

Sorry for all the confusion. When I say the file is fixed length, that means it is defined as a FB file with length(let's say 80). But the records can be anywhere from 50 to 80 characters lon ...
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 2:05 pm   Subject: Getting Cr at the end of the file
Right now I am using this card-
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(01,80,TRAN=ALTSEQ)
ALTSEQ CODE=(0D40) ...
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 12:41 pm   Subject: Getting Cr at the end of the file
Frank

Thanks a ton for the quick reply, but I guess my last reply was a little ambiguous.. my file is a fixed length file which can have variable length records, the above step won't work on that.. ...
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 9:30 am   Subject: Getting Cr at the end of the file
As an example-
The file looks like
01|123|12345.00.
02|134|43454456.00.
03|345|454543.00.

After stripping the last '.', the file should look like-
01|123|12345.00
02|134|43454456.00
03|3456 ...
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Mon Mar 10, 2008 8:27 am   Subject: Getting Cr at the end of the file
If there is no way of doing that using the FTP utility, can I remove the last character from a file with variable length records using DFSORT or some other utility?

Thanks for all your help..
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Sun Mar 09, 2008 10:43 am   Subject: Getting Cr at the end of the file
Superk

Thanks for the reply, but the problem is that the file I am talking about contains variable length records.
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Sat Mar 08, 2008 10:33 am   Subject: Getting Cr at the end of the file
Kolusu

Thanks for the quick reply. The problem I am facing is that I don't have admin rights on the Unix box. We get an encrypted file from a third party and the script on Unix box decrypts it from ...
  Topic: Getting Cr at the end of the file
varundb

Replies: 15
Views: 10130

PostForum: Utilities   Posted: Fri Mar 07, 2008 6:58 pm   Subject: Getting Cr at the end of the file
Hi

I am getting a file from Unix into a mainframe dataset using FTP. Each record is getting a '.' at the end. When I open up the file in the hex mode, it shows 0D. Can someone please help me strip ...
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group