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 

Problem with UNTERSE using TRSMAIN

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
senthilssg
Beginner


Joined: 19 Jan 2006
Posts: 4
Topics: 4

PostPosted: Mon Apr 02, 2007 12:40 am    Post subject: Problem with UNTERSE using TRSMAIN Reply with quote

Hi all ,

I am facing problem with unterse using TRSMAIN .

Packed dataset was FTP- ed to mainframe to one dataset with DCB ( RECFM=FB,LRECL=1024 and BLKSIZE=6144) .

After that, I tried with unpack of the above packed datasest using TRSMAIN with UNPACK option . After successful execution of the above job , the output file was created with following DCB : RECFM=VS,LRECL= 27940 and BLKSIZE=27936 ) .

I am not able to read /access the output dataset (which having RECFM as VS)

Observations from my side

1. I tried to preallocate output dataset with RECFM as FB . but UNPACK was failed with fololowing error (RC=16 )

Code:

 **** STARTING TERSE DECODE  UNPACK 4.14  10:57:43   4/02/07 ****               
 FOR INPUT  - DDNAME: INFILE   DSNAME: IBM.HABI910.F2.TERSED                   
 FOR OUTPUT - DDNAME: OUTFILE  DSNAME: IBM.HABI910.F2                           
 ** ERROR:   OUTPUT FILE HAS FIXED RECORDS AND THE ORIGINAL FILE HAD VARIABLE RECORDS.
 **** FINISHED TERSE DECODE  UNPACK 4.14  10:57:43   4/02/07 ****               
 RETURN CODE:  16   



Note:

Code:

**** STARTING TERSE DECODE  UNPACK 4.14  11:00:00   4/02/07 ****               
FOR INPUT  - DDNAME: INFILE   DSNAME: IBM.HABI910.F2.TERSED                   
FOR OUTPUT - DDNAME: OUTFILE  DSNAME: IBM.HABI910.F2                           
THE VALUES ARE: BLKSIZE= 27940   LRECL=27936   PACKTYPE=PACK    RECFM=VARIABLE
**** FINISHED TERSE DECODE  UNPACK 4.14  11:00:00   4/02/07 ****               
RETURN CODE:  0     


Can you please pass some light on this and find out where problem lies .

Kindly let me know if u want further input regarding this.

Thanks in advance

Thanks & Regards
Senthil K
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Mon Apr 02, 2007 2:19 am    Post subject: Reply with quote

What format is the output dataset suppose to be, kind of sounds like it is a adrdssu dataset. You need to get the information about the original dataset before it was tersed.
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Apr 02, 2007 8:40 am    Post subject: Reply with quote

It also might be an IEBCOPY unloaded file for recreating a PDS.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Mon Apr 09, 2007 9:13 am    Post subject: Reply with quote

From the name of the file it sounds like a relfile for SMP/e and it should end up being a PO dsorg with recfm U. Did IBM send this to you? IF IBM sent it then they should provide instructions. Or are you sending it from one system to another? If you are sending it then I'd XMIT the original PDS to a flat file and then FTP (binary) it to the other system, then RECEIVE it to convert it back from a flat file to a PDS.
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 -> Job Control Language(JCL) 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