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 

Fileaid maximum values to move

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
subbuy2k
Beginner


Joined: 12 Aug 2004
Posts: 29
Topics: 18

PostPosted: Mon Jun 06, 2005 5:25 am    Post subject: Fileaid maximum values to move Reply with quote

Hi,
Using Fileaid utility when i try to move records more than 256 it throws me the error, up to 256 its working fine.

pasting the code and error

Code
//DD01 DD DISP=SHR,DSN=G2AU00AP.PRODC.CMLSMRY.SEG4(0)
//DD01O DD DSN=G1AU00AT.APPBAT.QVC.REQ105(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(10,5),RLSE),
// DCB=(LRECL=1380,BLKSIZE=6900,RECFM=FB)
//SYSIN DD *
$$DD01 COPY IF=(1,NE,C'HEADER,TRAILER'),
MOVE=(40,257,1)
/*

error:-
$$DD01 COPY IF=(1,NE,C'HEADER,TRAILER'),
MOVE=(40,257,1)
1...5...10...15...20...25...3
INVALID LENGTH OR OPERATOR IN MOVE, CHECK DATA STARTING IN COLUMN 29
.....SKIPPING TO NEXT $$DD CARD RC=4


thanks
subbu
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: Mon Jun 06, 2005 5:55 am    Post subject: Reply with quote

Subbuy2k,

The max length of the data you can move using MOVE statement in file-aid is 256. Why not use 0 (zero) to tell File-AID to calculate the length, from the specified from-location in the input record, to the end of the input record, and to use the result as the length of the data to move.

ex:
Code:

$$DD01 COPY IF=(1,NE,C'HEADER,TRAILER'),
  MOVE=(40,0,1)


or you can split the control cards as chunks of 256 bytes as follows

Code:

$$DD01 COPY IF=(1,NE,C'HEADER,TRAILER'),
  MOVE=(40,256,1),
  MOVE=(+0,256,257)


+0 Indicates the relative position of the o/p file
Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
subbuy2k
Beginner


Joined: 12 Aug 2004
Posts: 29
Topics: 18

PostPosted: Mon Jun 06, 2005 8:24 am    Post subject: Reply with quote

Hi Kolusu,
i have also coded by splitting it into many 256 datas. Actually i have to move around 1150 bytes. since i am not able to move at a stretch i split into many 256.

1.Is there any way to move all the 1150 bytes at a time
2.is there any limit that we can move only 256 bytes at a time.

can you please tell me.

thanks
subbu
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: Mon Jun 06, 2005 8:50 am    Post subject: Reply with quote

Subbuy2k,

Quote:

1.Is there any way to move all the 1150 bytes at a time


Read my prior post carefully about using 0(zero) as an option to let file-aid calculate the length.

Quote:

2.is there any limit that we can move only 256 bytes at a time.


Once again if you have read my prior post carefully , you would have found that the max length of the data you can move using MOVE statement in file-aid is 256.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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