Posted: Tue May 16, 2006 4:09 am Post subject: Help Putting Quotes around a string of VB file
Hi
This is V.Ram Narayan.. I'm having a small clarification / dought in getting the output file during a srt phase thru JCl... My issue is, her is my infile e.g.
001 V.RAM NARAYAN SOFTWARE ENGINEER 36000 27
and i want my outfile to be like as follows :-
' 001 V.RAM NARAYAN SOFTWARE ENGINEER 36000 27 '
within quotes...my issue is i'm not sure how to convert the first and last byte to single quotes as this file is a VB..
so pls let me know or give me a sort card for achieving this.. appreciated the prompt reply..
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue May 16, 2006 11:00 am Post subject:
With z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006), you can use DFSORT's new SQZ function to do this quite easily as shown by the DFSORT job below:
Code:
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (VB/80)
//SORTOUT DD DSN=... output file (VB/80)
//SYSIN DD *
OPTION COPY
* Add apostrophe before first nonblank and after last noblank.
INREC OVERLAY=(5:5,76,SQZ=(SHIFT=LEFT,LEAD=C'''',TRAIL=C''''))
* Remove trailing blanks.
OUTFIL VLTRIM=C' '
/*
For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
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