IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need to copy COMP-3 variable to VB file.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aditya_gorti

New User


Joined: 21 Dec 2005
Posts: 19

PostPosted: Sat Jun 14, 2008 1:09 am
Reply with quote

I have a COMP-3 variable satrting in an input file(VB) from position 132.
The variable is S9(13) COMP-3.

I need to copy this to an output file (VB) so that I can see the number.

Please help me out with this.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Jun 14, 2008 1:41 am
Reply with quote

What do you want in the output file, just the ZD version of the comp-3 field or additional data? What about the sign of the comp-3 field? What is the lrecl of the input and output records.
Back to top
View user's profile Send private message
aditya_gorti

New User


Joined: 21 Dec 2005
Posts: 19

PostPosted: Sat Jun 14, 2008 1:49 am
Reply with quote

I just need the ZD version of the comp-3 field.
I do not want the Sign of comp-3
Lrecl of input - 20429 (VB)
Lrecl of output - 16 (12 + 4-VB)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jun 14, 2008 2:30 am
Reply with quote

for what reason You want to complicate Your life...
since every record is of the same length, there is no reason to have a varialble length record format...
just wondering
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Sat Jun 14, 2008 3:23 am
Reply with quote

The following DFSORT JCL will give you the desired results

Code:

//STEP0100 EXEC PGM=ICEMAN                 
//SYSOUT   DD SYSOUT=*                     
//SORTIN   DD DSN=your input vb file,disp=shr
//SORTOUT  DD SYSOUT=*                     
//SYSIN    DD *                             
  SORT FIELDS=COPY                         
  OUTFIL BUILD=(1,4,132,7,PD,M11,LENGTH=12)
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top